gsocketclient: Handle cancellation between CONNECTING and CONNECTED
[platform/upstream/glib.git] / gio / fam / fam-helper.h
1 /* GIO - GLib Input, Output and Streaming Library
2  * 
3  * Copyright (C) 2006-2007 Red Hat, Inc.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General
16  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17  *
18  * Authors: Alexander Larsson <alexl@redhat.com>
19  *          John McCutchan <john@johnmccutchan.com> 
20  *          Sebastian Dröge <slomo@circular-chaos.org>
21  */
22
23 #ifndef __FAM_HELPER_H__
24 #define __FAM_HELPER_H__
25
26 typedef struct _fam_sub fam_sub;
27
28 gboolean  _fam_sub_startup (void);
29 void      _fam_sub_shutdown (void);
30 fam_sub*  _fam_sub_add     (const gchar* pathname,
31                             gboolean     directory,
32                             gpointer     user_data);
33 gboolean  _fam_sub_cancel  (fam_sub* sub);
34 void      _fam_sub_free    (fam_sub* sub);
35
36 #endif /* __FAM_HELPER_H__ */