ofdbus/dbus/dbus/dbus-sysdeps-unix.h
changeset 31 ce057bb09d0b
child 45 4b03adbd26ca
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 /* -*- mode: C; c-file-style: "gnu" -*- */
       
     2 /* dbus-sysdeps-unix.h UNIX-specific wrappers around system/libc features (internal to D-Bus implementation)
       
     3  * 
       
     4  * Copyright (C) 2002, 2003, 2006  Red Hat, Inc.
       
     5  * Copyright (C) 2003 CodeFactory AB
       
     6  * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     7  * Licensed under the Academic Free License version 2.1
       
     8  * 
       
     9  * This program is free software; you can redistribute it and/or modify
       
    10  * it under the terms of the GNU General Public License as published by
       
    11  * the Free Software Foundation; either version 2 of the License, or
       
    12  * (at your option) any later version.
       
    13  *
       
    14  * This program is distributed in the hope that it will be useful,
       
    15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    17  * GNU General Public License for more details.
       
    18  * 
       
    19  * You should have received a copy of the GNU General Public License
       
    20  * along with this program; if not, write to the Free Software
       
    21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    22  *
       
    23  */
       
    24 
       
    25 #ifndef DBUS_SYSDEPS_UNIX_H
       
    26 #define DBUS_SYSDEPS_UNIX_H
       
    27 #ifndef __SYMBIAN32__
       
    28 #include <config.h>
       
    29 #include <dbus/dbus-sysdeps.h>
       
    30 #else
       
    31 #include "config.h"
       
    32 #include "dbus/dbus-sysdeps.h"
       
    33 #endif
       
    34 
       
    35 
       
    36 #ifdef DBUS_WIN
       
    37 #error "Don't include this on Windows"
       
    38 #endif
       
    39 
       
    40 DBUS_BEGIN_DECLS
       
    41 
       
    42 /**
       
    43  * @defgroup DBusSysdepsUnix UNIX-specific internal API
       
    44  * @ingroup DBusInternals
       
    45  * @brief Internal system-dependent API available on UNIX only
       
    46  * @{
       
    47  */
       
    48 #ifdef __SYMBIAN32__
       
    49 IMPORT_C
       
    50 #endif
       
    51 dbus_bool_t 
       
    52 _dbus_close     (int               fd,
       
    53                  DBusError        *error);
       
    54 int 
       
    55 _dbus_read      (int               fd,
       
    56                  DBusString       *buffer,
       
    57                  int               count);
       
    58 int 
       
    59 _dbus_write     (int               fd,
       
    60                  const DBusString *buffer,
       
    61                  int               start,
       
    62                  int               len);
       
    63 int 
       
    64 _dbus_write_two (int               fd,
       
    65                  const DBusString *buffer1,
       
    66                  int               start1,
       
    67                  int               len1,
       
    68                  const DBusString *buffer2,
       
    69                  int               start2,
       
    70                  int               len2);
       
    71 
       
    72 dbus_bool_t _dbus_open_unix_socket (int              *fd,
       
    73                                     DBusError        *error);
       
    74 int _dbus_connect_unix_socket (const char     *path,
       
    75                                dbus_bool_t     abstract,
       
    76                                DBusError      *error);
       
    77 int _dbus_listen_unix_socket  (const char     *path,
       
    78                                dbus_bool_t     abstract,
       
    79                                DBusError      *error);
       
    80 
       
    81 /** @} */
       
    82 
       
    83 DBUS_END_DECLS
       
    84 
       
    85 #endif /* DBUS_SYSDEPS_UNIX_H */