dbus-sysdeps-unix.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-sysdeps-unix.h UNIX-specific wrappers around system/libc features (internal to D-Bus implementation)
00003  * 
00004  * Copyright (C) 2002, 2003, 2006  Red Hat, Inc.
00005  * Copyright (C) 2003 CodeFactory AB
00006  *
00007  * Licensed under the Academic Free License version 2.1
00008  * 
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022  *
00023  */
00024 
00025 #ifndef DBUS_SYSDEPS_UNIX_H
00026 #define DBUS_SYSDEPS_UNIX_H
00027 
00028 #include <config.h>
00029 #include <dbus/dbus-sysdeps.h>
00030 
00031 #ifdef DBUS_WIN
00032 #error "Don't include this on Windows"
00033 #endif
00034 
00035 DBUS_BEGIN_DECLS
00036 
00044 dbus_bool_t 
00045 _dbus_close     (int               fd,
00046                  DBusError        *error);
00047 int 
00048 _dbus_read      (int               fd,
00049                  DBusString       *buffer,
00050                  int               count);
00051 int 
00052 _dbus_write     (int               fd,
00053                  const DBusString *buffer,
00054                  int               start,
00055                  int               len);
00056 int 
00057 _dbus_write_two (int               fd,
00058                  const DBusString *buffer1,
00059                  int               start1,
00060                  int               len1,
00061                  const DBusString *buffer2,
00062                  int               start2,
00063                  int               len2);
00064 
00065 dbus_bool_t _dbus_open_unix_socket (int              *fd,
00066                                     DBusError        *error);
00067 int _dbus_connect_unix_socket (const char     *path,
00068                                dbus_bool_t     abstract,
00069                                DBusError      *error);
00070 int _dbus_listen_unix_socket  (const char     *path,
00071                                dbus_bool_t     abstract,
00072                                DBusError      *error);
00073 
00076 DBUS_END_DECLS
00077 
00078 #endif /* DBUS_SYSDEPS_UNIX_H */

Generated on Fri Sep 21 18:12:13 2007 for D-Bus by  doxygen 1.5.1