dbus-address.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-address.h  Server address parser.
00003  *
00004  * Copyright (C) 2003  CodeFactory AB
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 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
00024 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
00025 #endif
00026 
00027 #ifndef DBUS_ADDRESS_H
00028 #define DBUS_ADDRESS_H
00029 
00030 #include <dbus/dbus-types.h>
00031 #include <dbus/dbus-errors.h>
00032 
00033 DBUS_BEGIN_DECLS
00034 
00041 typedef struct DBusAddressEntry DBusAddressEntry;
00042 
00043 dbus_bool_t dbus_parse_address            (const char         *address,
00044                                            DBusAddressEntry ***entry,
00045                                            int                *array_len,
00046                                            DBusError          *error);
00047 const char *dbus_address_entry_get_value  (DBusAddressEntry   *entry,
00048                                            const char         *key);
00049 const char *dbus_address_entry_get_method (DBusAddressEntry   *entry);
00050 void        dbus_address_entries_free     (DBusAddressEntry  **entries);
00051 
00052 char* dbus_address_escape_value   (const char *value);
00053 char* dbus_address_unescape_value (const char *value,
00054                                    DBusError  *error);
00055 
00058 DBUS_END_DECLS
00059 
00060 #endif /* DBUS_ADDRESS_H */
00061 

Generated on Tue Apr 15 15:53:54 2008 for D-Bus by  doxygen 1.5.1