dbus-message-internal.h

00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 /* dbus-message-internal.h DBusMessage object internal interfaces
00003  *
00004  * Copyright (C) 2002  Red Hat Inc.
00005  *
00006  * Licensed under the Academic Free License version 2.1
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 #ifndef DBUS_MESSAGE_INTERNAL_H
00024 #define DBUS_MESSAGE_INTERNAL_H
00025 
00026 #include <dbus/dbus-message.h>
00027 #include <dbus/dbus-resources.h>
00028 #include <dbus/dbus-list.h>
00029 
00030 DBUS_BEGIN_DECLS
00031 
00032 typedef struct DBusMessageLoader DBusMessageLoader;
00033 
00034 void _dbus_message_get_network_data  (DBusMessage       *message,
00035                                       const DBusString **header,
00036                                       const DBusString **body);
00037 
00038 void        _dbus_message_lock                  (DBusMessage  *message);
00039 void        _dbus_message_unlock                (DBusMessage  *message);
00040 void        _dbus_message_set_serial            (DBusMessage  *message,
00041                                                  dbus_uint32_t serial);
00042 dbus_bool_t _dbus_message_add_size_counter      (DBusMessage  *message,
00043                                                  DBusCounter  *counter);
00044 void        _dbus_message_add_size_counter_link (DBusMessage  *message,
00045                                                  DBusList     *link);
00046 void        _dbus_message_remove_size_counter   (DBusMessage  *message,
00047                                                  DBusCounter  *counter,
00048                                                  DBusList    **link_return);
00049 
00050 DBusMessageLoader* _dbus_message_loader_new                   (void);
00051 DBusMessageLoader* _dbus_message_loader_ref                   (DBusMessageLoader  *loader);
00052 void               _dbus_message_loader_unref                 (DBusMessageLoader  *loader);
00053 
00054 void               _dbus_message_loader_get_buffer            (DBusMessageLoader  *loader,
00055                                                                DBusString        **buffer);
00056 void               _dbus_message_loader_return_buffer         (DBusMessageLoader  *loader,
00057                                                                DBusString         *buffer,
00058                                                                int                 bytes_read);
00059 dbus_bool_t        _dbus_message_loader_queue_messages        (DBusMessageLoader  *loader);
00060 DBusMessage*       _dbus_message_loader_peek_message          (DBusMessageLoader  *loader);
00061 DBusMessage*       _dbus_message_loader_pop_message           (DBusMessageLoader  *loader);
00062 DBusList*          _dbus_message_loader_pop_message_link      (DBusMessageLoader  *loader);
00063 void               _dbus_message_loader_putback_message_link  (DBusMessageLoader  *loader,
00064                                                                DBusList           *link);
00065 
00066 dbus_bool_t        _dbus_message_loader_get_is_corrupted      (DBusMessageLoader  *loader);
00067 
00068 void               _dbus_message_loader_set_max_message_size  (DBusMessageLoader  *loader,
00069                                                                long                size);
00070 long               _dbus_message_loader_get_max_message_size  (DBusMessageLoader  *loader);
00071 
00072 DBUS_END_DECLS
00073 
00074 #endif /* DBUS_MESSAGE_INTERNAL_H */

Generated on Tue Feb 24 16:40:39 2009 for D-Bus by  doxygen 1.5.1