File: basicpholder.h

package info (click to toggle)
notion 4.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,656 kB
  • sloc: ansic: 47,365; sh: 2,093; makefile: 594; perl: 270
file content (43 lines) | stat: -rw-r--r-- 1,112 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
 * ion/ioncore/basicpholder.h
 *
 * Copyright (c) Tuomo Valkonen 2005-2007.
 *
 * See the included file LICENSE for details.
 */

#ifndef ION_IONCORE_BASICPHOLDER_H
#define ION_IONCORE_BASICPHOLDER_H

#include "common.h"
#include "pholder.h"
#include "attach.h"


typedef WRegion *WBasicPHolderHandler(WRegion *reg, int flags,
                                      WRegionAttachData *data);

INTRCLASS(WBasicPHolder);

DECLCLASS(WBasicPHolder){
    WPHolder ph;
    Watch reg_watch;
    WBasicPHolderHandler* hnd;
};

extern WBasicPHolder *create_basicpholder(WRegion *reg,
                                          WBasicPHolderHandler *hnd);

extern bool basicpholder_init(WBasicPHolder *ph, WRegion *reg,
                              WBasicPHolderHandler *hnd);

extern void basicpholder_deinit(WBasicPHolder *ph);

extern bool basicpholder_do_goto(WBasicPHolder *ph);

extern WRegion *basicpholder_do_target(WBasicPHolder *ph);

extern WRegion *basicpholder_do_attach(WBasicPHolder *ph, int flags,
                                       WRegionAttachData *data);

#endif /* ION_IONCORE_BASICPHOLDER_H */