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 Sun Microsystems, Inc. All rights reserved.
5 * Use is subject to license terms.
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, write to the
19 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20 * Boston, MA 02111-1307, USA.
21 *
22 * Authors: Lin Ma <lin.ma@sun.com>
23 */
24
25#include <port.h>
26#include <sys/types.h>
27#include <sys/stat.h>
28
29#ifndef _FEN_KERNEL_H_
30#define _FEN_KERNEL_H_
31
32#define FN_STAT	lstat
33
34typedef struct fnode_event
35{
36    int e;
37    gboolean has_twin;
38    gboolean is_pending;
39    gpointer user_data;
40    GTimeVal t;
41} fnode_event_t;
42
43gboolean port_add (file_obj_t* fobj, off_t* len, gpointer f);
44gboolean port_add_simple (file_obj_t* fobj, gpointer f);
45void port_remove (gpointer f);
46gboolean is_ported (gpointer f);
47
48fnode_event_t* fnode_event_new (int event, gboolean has_twin, gpointer user_data);
49void fnode_event_delete (fnode_event_t* ev);
50const gchar * _event_string (int event);
51
52extern gboolean port_class_init ();
53
54#endif /* _FEN_KERNEL_H_ */
55