• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List

dbus-pipe.h

00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 /* dbus-sysdeps.h Wrappers around system/libc features (internal to D-Bus implementation)
00003  * 
00004  * Copyright (C) 2002, 2003  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022  *
00023  */
00024 
00025 #ifndef DBUS_PIPE_H
00026 #define DBUS_PIPE_H
00027 
00028 #ifdef HAVE_STDINT_H
00029 #include <stdint.h>
00030 #endif
00031 
00032 #ifdef HAVE_INTTYPES_H
00033 #include <inttypes.h>
00034 #endif
00035 
00036 #include <dbus/dbus-types.h>
00037 #include <dbus/dbus-errors.h>
00038 #include <dbus/dbus-string.h>
00039 #include <dbus/dbus-sysdeps.h>
00040 
00041 struct DBusPipe {
00042   intptr_t fd_or_handle;
00043 };
00044 
00045 void        _dbus_pipe_init                (DBusPipe         *pipe,
00046                                             intptr_t          fd);
00047 void        _dbus_pipe_init_stdout         (DBusPipe         *pipe);
00048 int         _dbus_pipe_write               (DBusPipe         *pipe,
00049                                             const DBusString *buffer,
00050                                             int               start,
00051                                             int               len,
00052                                             DBusError        *error);
00053 int         _dbus_pipe_close               (DBusPipe         *pipe,
00054                                             DBusError        *error);
00055 dbus_bool_t _dbus_pipe_is_valid            (DBusPipe         *pipe);
00056 void        _dbus_pipe_invalidate          (DBusPipe         *pipe);
00057 dbus_bool_t _dbus_pipe_is_stdout_or_stderr (DBusPipe         *pipe);
00058 
00059 #endif

Generated on Tue Dec 21 2010 for D-Bus by  doxygen 1.7.1