X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgunixfdlist.h;h=6b1c38307042bd1a7a84d74cceeabf825ece0364;hb=356a3987cee7ceddcb3fe623edf0bd2881895add;hp=638b685e775ce083db5ff58109ad61041a0f0ef0;hpb=69801f8dc84c0c9403df6802eccc5d03328cd3ae;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gunixfdlist.h b/gio/gunixfdlist.h index 638b685..6b1c383 100644 --- a/gio/gunixfdlist.h +++ b/gio/gunixfdlist.h @@ -13,9 +13,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Authors: Ryan Lortie */ @@ -23,7 +21,7 @@ #ifndef __G_UNIX_FD_LIST_H__ #define __G_UNIX_FD_LIST_H__ -#include +#include G_BEGIN_DECLS @@ -41,7 +39,6 @@ G_BEGIN_DECLS typedef struct _GUnixFDListPrivate GUnixFDListPrivate; typedef struct _GUnixFDListClass GUnixFDListClass; -typedef struct _GUnixFDList GUnixFDList; struct _GUnixFDListClass { @@ -63,24 +60,32 @@ struct _GUnixFDList GUnixFDListPrivate *priv; }; +GLIB_AVAILABLE_IN_ALL GType g_unix_fd_list_get_type (void) G_GNUC_CONST; +GLIB_AVAILABLE_IN_ALL GUnixFDList * g_unix_fd_list_new (void); +GLIB_AVAILABLE_IN_ALL GUnixFDList * g_unix_fd_list_new_from_array (const gint *fds, gint n_fds); +GLIB_AVAILABLE_IN_ALL gint g_unix_fd_list_append (GUnixFDList *list, gint fd, GError **error); +GLIB_AVAILABLE_IN_ALL gint g_unix_fd_list_get_length (GUnixFDList *list); +GLIB_AVAILABLE_IN_ALL gint g_unix_fd_list_get (GUnixFDList *list, gint index_, GError **error); +GLIB_AVAILABLE_IN_ALL const gint * g_unix_fd_list_peek_fds (GUnixFDList *list, gint *length); +GLIB_AVAILABLE_IN_ALL gint * g_unix_fd_list_steal_fds (GUnixFDList *list, gint *length);