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., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, 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;
58 GSSDPClientPrivate *priv;
62 GObjectClass parent_class;
65 void (* _gssdp_reserved1) (void);
66 void (* _gssdp_reserved2) (void);
67 void (* _gssdp_reserved3) (void);
68 void (* _gssdp_reserved4) (void);
72 gssdp_client_new (GMainContext *main_context,
73 const char *interface,
77 gssdp_client_get_main_context (GSSDPClient *client);
80 gssdp_client_set_server_id (GSSDPClient *client,
81 const char *server_id);
84 gssdp_client_get_server_id (GSSDPClient *client);
87 gssdp_client_get_interface (GSSDPClient *client);
90 gssdp_client_get_host_ip (GSSDPClient *client);
93 gssdp_client_get_active (GSSDPClient *client);
97 #endif /* __GSSDP_CLIENT_H__ */