2 * Copyright (C) 2006, 2007 OpenedHand Ltd.
4 * Author: Jorn Baayen <jorn@openedhand.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef __GSSDP_CLIENT_H__
23 #define __GSSDP_CLIENT_H__
25 #include <glib-object.h>
30 gssdp_client_get_type (void) G_GNUC_CONST;
32 #define GSSDP_TYPE_CLIENT \
33 (gssdp_client_get_type ())
34 #define GSSDP_CLIENT(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
38 #define GSSDP_CLIENT_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST ((klass), \
42 #define GSSDP_IS_CLIENT(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
45 #define GSSDP_IS_CLIENT_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
48 #define GSSDP_CLIENT_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
53 typedef struct _GSSDPClientPrivate GSSDPClientPrivate;
54 typedef struct _GSSDPClient GSSDPClient;
55 typedef struct _GSSDPClientClass GSSDPClientClass;
60 GSSDPClientPrivate *priv;
63 struct _GSSDPClientClass {
64 GObjectClass parent_class;
67 void (* _gssdp_reserved1) (void);
68 void (* _gssdp_reserved2) (void);
69 void (* _gssdp_reserved3) (void);
70 void (* _gssdp_reserved4) (void);
74 gssdp_client_new (GMainContext *main_context,
78 #ifndef GSSDP_DISABLE_DEPRECATED
80 gssdp_client_get_main_context (GSSDPClient *client);
84 gssdp_client_set_server_id (GSSDPClient *client,
85 const char *server_id);
88 gssdp_client_get_server_id (GSSDPClient *client);
91 gssdp_client_get_interface (GSSDPClient *client);
94 gssdp_client_get_host_ip (GSSDPClient *client);
97 gssdp_client_set_network (GSSDPClient *client,
101 gssdp_client_get_network (GSSDPClient *client);
104 gssdp_client_get_active (GSSDPClient *client);
108 #endif /* __GSSDP_CLIENT_H__ */