[kdbus] KDBUS_ITEM_PAYLOAD_OFF items are (once again) relative to msg header
[platform/upstream/glib.git] / gio / fen / fen-kernel.h
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim:set expandtab ts=4 shiftwidth=4: */
3 /* 
4  * Copyright (c) 2008, 2010 Oracle and/or its affiliates, Inc. All rights
5  * reserved.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General
18  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19  *
20  * Authors: Lin Ma <lin.ma@sun.com>
21  */
22
23 #include <sys/types.h>
24 #include <errno.h>
25
26 #include "fen-node.h"
27
28 #ifndef _FEN_KERNEL_H_
29 #define _FEN_KERNEL_H_
30
31 #define CONCERNED_EVENTS (FILE_MODIFIED | FILE_ATTRIB | FILE_NOFOLLOW)
32 #define EXCEPTION_EVENTS (FILE_DELETE | FILE_RENAME_FROM)
33 #define HAS_EXCEPTION_EVENTS(e) ((e & EXCEPTION_EVENTS) != 0)
34 #define HAS_NO_EXCEPTION_EVENTS(e) ((e & EXCEPTION_EVENTS) == 0)
35
36 gint port_add (node_t* f);
37 void port_remove (node_t *f);
38
39 gboolean port_class_init ();
40
41 #endif /* _FEN_KERNEL_H_ */