os/ossrv/ossrv_pub/dbus/inc/dbus-address.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/* -*- mode: C; c-file-style: "gnu" -*- */
sl@0
     2
/* dbus-address.h  Server address parser.
sl@0
     3
 *
sl@0
     4
 * Copyright (C) 2003  CodeFactory AB
sl@0
     5
 * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
sl@0
     6
 * Licensed under the Academic Free License version 2.1
sl@0
     7
 * 
sl@0
     8
 * This program is free software; you can redistribute it and/or modify
sl@0
     9
 * it under the terms of the GNU General Public License as published by
sl@0
    10
 * the Free Software Foundation; either version 2 of the License, or
sl@0
    11
 * (at your option) any later version.
sl@0
    12
 *
sl@0
    13
 * This program is distributed in the hope that it will be useful,
sl@0
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
sl@0
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
sl@0
    16
 * GNU General Public License for more details.
sl@0
    17
 * 
sl@0
    18
 * You should have received a copy of the GNU General Public License
sl@0
    19
 * along with this program; if not, write to the Free Software
sl@0
    20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
sl@0
    21
 *
sl@0
    22
 */
sl@0
    23
#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
sl@0
    24
#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
sl@0
    25
#endif
sl@0
    26
sl@0
    27
#ifndef DBUS_ADDRESS_H
sl@0
    28
#define DBUS_ADDRESS_H
sl@0
    29
sl@0
    30
#ifdef __SYMBIAN32__
sl@0
    31
#include <dbus/dbus-types.h>
sl@0
    32
#include <dbus/dbus-errors.h>
sl@0
    33
#else
sl@0
    34
#include "dbus/dbus-types.h"
sl@0
    35
#include "dbus/dbus-errors.h"
sl@0
    36
#endif
sl@0
    37
sl@0
    38
DBUS_BEGIN_DECLS
sl@0
    39
sl@0
    40
/**
sl@0
    41
 * @addtogroup DBusAddress
sl@0
    42
 * @{
sl@0
    43
 */
sl@0
    44
sl@0
    45
/** Opaque type representing one of the semicolon-separated items in an address */
sl@0
    46
typedef struct DBusAddressEntry DBusAddressEntry;
sl@0
    47
sl@0
    48
#ifdef __SYMBIAN32__
sl@0
    49
IMPORT_C
sl@0
    50
#endif
sl@0
    51
dbus_bool_t dbus_parse_address            (const char         *address,
sl@0
    52
					   DBusAddressEntry ***entry,
sl@0
    53
					   int                *array_len,
sl@0
    54
					   DBusError          *error);
sl@0
    55
#ifdef __SYMBIAN32__
sl@0
    56
IMPORT_C
sl@0
    57
#endif
sl@0
    58
const char *dbus_address_entry_get_value  (DBusAddressEntry   *entry,
sl@0
    59
					   const char         *key);
sl@0
    60
#ifdef __SYMBIAN32__
sl@0
    61
IMPORT_C
sl@0
    62
#endif
sl@0
    63
const char *dbus_address_entry_get_method (DBusAddressEntry   *entry);
sl@0
    64
#ifdef __SYMBIAN32__
sl@0
    65
IMPORT_C
sl@0
    66
#endif
sl@0
    67
void        dbus_address_entries_free     (DBusAddressEntry  **entries);
sl@0
    68
sl@0
    69
#ifdef __SYMBIAN32__
sl@0
    70
IMPORT_C
sl@0
    71
#endif
sl@0
    72
char* dbus_address_escape_value   (const char *value);
sl@0
    73
#ifdef __SYMBIAN32__
sl@0
    74
IMPORT_C
sl@0
    75
#endif
sl@0
    76
char* dbus_address_unescape_value (const char *value,
sl@0
    77
                                   DBusError  *error);
sl@0
    78
sl@0
    79
/** @} */
sl@0
    80
sl@0
    81
DBUS_END_DECLS
sl@0
    82
sl@0
    83
#endif /* DBUS_ADDRESS_H */
sl@0
    84