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