diff options
author | Havoc Pennington <hp@redhat.com> | 2002-11-25 05:13:09 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2002-11-25 05:13:09 +0000 |
commit | 041b0767b284034aee09e9a0de2a3844b8cc546a (patch) | |
tree | 8ef9cce16d743350971696ff6333ce43686c7ac0 /dbus/dbus-internals.h | |
parent | 576cdb6e0b1274e9fa5276e01337aef330dd4e8c (diff) |
2002-11-24 Havoc Pennington <hp@pobox.com>
* test/echo-client.c, test/echo-server.c: cheesy test
clients.
* configure.in (AC_CHECK_FUNCS): check for writev
* dbus/dbus-message.c (_dbus_message_get_network_data): new
function
* dbus/dbus-list.c (_dbus_list_foreach): new function
* dbus/dbus-internals.c (_dbus_verbose): new function
* dbus/dbus-server.c, dbus/dbus-server.h: public object
representing a server that listens for connections.
* dbus/.cvsignore: create
* dbus/dbus-errors.h, dbus/dbus-errors.c:
public API for reporting errors
* dbus/dbus-connection.h, dbus/dbus-connection.c:
public object representing a connection that
sends/receives messages. (Same object used for
both client and server.)
* dbus/dbus-transport.h, dbus/dbus-transport.c:
Basic abstraction for different kinds of stream
that we might read/write messages from.
Diffstat (limited to 'dbus/dbus-internals.h')
-rw-r--r-- | dbus/dbus-internals.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h index 74bae96e..5d001397 100644 --- a/dbus/dbus-internals.h +++ b/dbus/dbus-internals.h @@ -20,6 +20,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ +#ifdef DBUS_INSIDE_DBUS_H +#error "You can't include dbus-internals.h in the public header dbus.h" +#endif #ifndef DBUS_INTERNALS_H #define DBUS_INTERNALS_H @@ -28,13 +31,20 @@ #include <dbus/dbus-memory.h> #include <dbus/dbus-types.h> +#include <dbus/dbus-errors.h> #include <stdlib.h> /* for abort() */ #include <string.h> /* just so it's there in every file */ DBUS_BEGIN_DECLS; -void _dbus_warn (const char *format, - ...); +void _dbus_warn (const char *format, + ...); +void _dbus_verbose (const char *format, + ...); + +const char* _dbus_strerror (int error_number); + +DBusResultCode _dbus_result_from_errno (int error_number); #define _dbus_assert(condition) \ do { \ @@ -58,10 +68,19 @@ do { #define _DBUS_POINTER_TO_INT(pointer) ((long)(pointer)) #define _DBUS_INT_TO_POINTER(integer) ((void*)((long)(integer))) +#define _DBUS_ZERO(object) (memset (&(object), '\0', sizeof ((object)))) + char* _dbus_strdup (const char *str); #define _DBUS_INT_MIN (-_DBUS_INT_MAX - 1) #define _DBUS_INT_MAX 2147483647 +#define _DBUS_MAX_SUN_PATH_LENGTH 99 + +typedef void (* DBusForeachFunction) (void *element, + void *data); + +dbus_bool_t _dbus_set_fd_nonblocking (int fd, + DBusResultCode *result); DBUS_END_DECLS; |