File: gam_subscription.h

package info (click to toggle)
gamin 0.1.10-5
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 3,784 kB
  • ctags: 1,921
  • sloc: ansic: 10,675; sh: 8,915; python: 3,706; xml: 1,303; makefile: 319; awk: 48
file content (54 lines) | stat: -rw-r--r-- 1,851 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
44
45
46
47
48
49
50
51
52
53
54

#ifndef __GAM_SUBSCRIPTION_H__
#define __GAM_SUBSCRIPTION_H__

#include <glib.h>
#include "gam_event.h"
#include "gam_listener.h"

G_BEGIN_DECLS

GamSubscription     *gam_subscription_new          (const char *path,
						    int         events,
						    int         reqno,
						    gboolean    is_dir,
						    int         options);

void                 gam_subscription_free         (GamSubscription *sub);

gboolean             gam_subscription_is_dir       (GamSubscription *sub);
int                  gam_subscription_pathlen      (GamSubscription *sub);

int                  gam_subscription_get_reqno    (GamSubscription *sub);

const char *gam_subscription_get_path     (GamSubscription *sub);

GamListener         *gam_subscription_get_listener (GamSubscription *sub);

void                 gam_subscription_set_listener (GamSubscription *sub,
						    GamListener     *listener);

void                 gam_subscription_set_event    (GamSubscription *sub,
						    int              event);
void                 gam_subscription_unset_event  (GamSubscription *sub,
						    int              event);
gboolean             gam_subscription_has_event    (GamSubscription *sub,
						    int              event);

gboolean             gam_subscription_has_option   (GamSubscription * sub,
						    int              option);
void                 gam_subscription_cancel       (GamSubscription *sub);
gboolean             gam_subscription_is_cancelled (GamSubscription *sub);

gboolean             gam_subscription_wants_event  (GamSubscription *sub,
						    const char      *name,
						    int          is_dir_node,
						    GaminEventType   event,
						    int force);
void                 gam_subscription_debug        (GamSubscription *sub);

void				gam_subscription_shutdown ();

G_END_DECLS

#endif /* __GAM_SUBSCRIPTION_H__ */