sl@0: /* -*- mode: C; c-file-style: "gnu" -*- */ sl@0: /* dbus-address.h Server address parser. sl@0: * sl@0: * Copyright (C) 2003 CodeFactory AB sl@0: * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. sl@0: * Licensed under the Academic Free License version 2.1 sl@0: * sl@0: * This program is free software; you can redistribute it and/or modify sl@0: * it under the terms of the GNU General Public License as published by sl@0: * the Free Software Foundation; either version 2 of the License, or sl@0: * (at your option) any later version. sl@0: * sl@0: * This program is distributed in the hope that it will be useful, sl@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of sl@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the sl@0: * GNU General Public License for more details. sl@0: * sl@0: * You should have received a copy of the GNU General Public License sl@0: * along with this program; if not, write to the Free Software sl@0: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA sl@0: * sl@0: */ sl@0: #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION) sl@0: #error "Only can be included directly, this file may disappear or change contents." sl@0: #endif sl@0: sl@0: #ifndef DBUS_ADDRESS_H sl@0: #define DBUS_ADDRESS_H sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: #include sl@0: #include sl@0: #else sl@0: #include "dbus/dbus-types.h" sl@0: #include "dbus/dbus-errors.h" sl@0: #endif sl@0: sl@0: DBUS_BEGIN_DECLS sl@0: sl@0: /** sl@0: * @addtogroup DBusAddress sl@0: * @{ sl@0: */ sl@0: sl@0: /** Opaque type representing one of the semicolon-separated items in an address */ sl@0: typedef struct DBusAddressEntry DBusAddressEntry; sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: dbus_bool_t dbus_parse_address (const char *address, sl@0: DBusAddressEntry ***entry, sl@0: int *array_len, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: const char *dbus_address_entry_get_value (DBusAddressEntry *entry, sl@0: const char *key); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: const char *dbus_address_entry_get_method (DBusAddressEntry *entry); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: void dbus_address_entries_free (DBusAddressEntry **entries); sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: char* dbus_address_escape_value (const char *value); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: char* dbus_address_unescape_value (const char *value, sl@0: DBusError *error); sl@0: sl@0: /** @} */ sl@0: sl@0: DBUS_END_DECLS sl@0: sl@0: #endif /* DBUS_ADDRESS_H */ sl@0: