~ubuntu-branches/ubuntu/vivid/gtk-vnc/vivid

« back to all changes in this revision

Viewing changes to src/continuation.h

  • Committer: Package Import Robot
  • Author(s): Guido Günther
  • Date: 2011-12-22 20:07:18 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20111222200718-1r60d6ckb4dmef0m
Tags: 0.5.0-1
* [853db65] New upstream version 0.5.0 with QEMU audio extension support
* [6b72676] Update patches.
* [3552666] Remove GNUmakefile links since it breaks the out of tree build.
* [3e500f8] Update symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
struct continuation
27
27
{
28
 
        char *stack;
29
 
        size_t stack_size;
30
 
        void (*entry)(struct continuation *cc);
31
 
        int (*release)(struct continuation *cc);
 
28
    char *stack;
 
29
    size_t stack_size;
 
30
    void (*entry)(struct continuation *cc);
 
31
    int (*release)(struct continuation *cc);
32
32
 
33
 
        /* private */
34
 
        ucontext_t uc;
35
 
        ucontext_t last;
36
 
        int exited;
 
33
    /* private */
 
34
    ucontext_t uc;
 
35
    ucontext_t last;
 
36
    int exited;
37
37
};
38
38
 
39
39
int cc_init(struct continuation *cc);
45
45
int cc_swap(struct continuation *from, struct continuation *to);
46
46
 
47
47
#define offset_of(type, member) ((unsigned long)(&((type *)0)->member))
48
 
#define container_of(obj, type, member) \
49
 
        (type *)(((char *)obj) - offset_of(type, member))
 
48
#define container_of(obj, type, member)                 \
 
49
    (type *)(((char *)obj) - offset_of(type, member))
50
50
 
51
51
#endif
52
52
/*
53
53
 * Local variables:
54
 
 *  c-indent-level: 8
55
 
 *  c-basic-offset: 8
56
 
 *  tab-width: 8
 
54
 *  c-indent-level: 4
 
55
 *  c-basic-offset: 4
 
56
 *  indent-tabs-mode: nil
57
57
 * End:
58
58
 */