Fix the lib path
[external/gssdp.git] / libgssdp / gssdp-client.h
1 /* 
2  * Copyright (C) 2006, 2007 OpenedHand Ltd.
3  *
4  * Author: Jorn Baayen <jorn@openedhand.com>
5  *
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.
10  *
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.
15  *
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.
20  */
21
22 #ifndef __GSSDP_CLIENT_H__
23 #define __GSSDP_CLIENT_H__
24
25 #include <glib-object.h>
26
27 G_BEGIN_DECLS
28
29 GType
30 gssdp_client_get_type (void) G_GNUC_CONST;
31
32 #define GSSDP_TYPE_CLIENT \
33                 (gssdp_client_get_type ())
34 #define GSSDP_CLIENT(obj) \
35                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36                  GSSDP_TYPE_CLIENT, \
37                  GSSDPClient))
38 #define GSSDP_CLIENT_CLASS(klass) \
39                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
40                  GSSDP_TYPE_CLIENT, \
41                  GSSDPClientClass))
42 #define GSSDP_IS_CLIENT(obj) \
43                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
44                  GSSDP_TYPE_CLIENT))
45 #define GSSDP_IS_CLIENT_CLASS(klass) \
46                 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
47                  GSSDP_TYPE_CLIENT))
48 #define GSSDP_CLIENT_GET_CLASS(obj) \
49                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50                  GSSDP_TYPE_CLIENT, \
51                  GSSDPClientClass))
52
53 typedef struct _GSSDPClientPrivate GSSDPClientPrivate;
54
55 typedef struct {
56         GObject parent;
57
58         GSSDPClientPrivate *priv;
59 } GSSDPClient;
60
61 typedef struct {
62         GObjectClass parent_class;
63
64         /* future padding */
65         void (* _gssdp_reserved1) (void);
66         void (* _gssdp_reserved2) (void);
67         void (* _gssdp_reserved3) (void);
68         void (* _gssdp_reserved4) (void);
69 } GSSDPClientClass;
70
71 GSSDPClient *
72 gssdp_client_new              (GMainContext *main_context,
73                                const char   *interface,
74                                GError      **error);
75
76 GMainContext *
77 gssdp_client_get_main_context (GSSDPClient  *client);
78
79 void
80 gssdp_client_set_server_id    (GSSDPClient  *client,
81                                const char   *server_id);
82
83 const char *
84 gssdp_client_get_server_id    (GSSDPClient  *client);
85
86 const char *
87 gssdp_client_get_interface    (GSSDPClient  *client);
88
89 const char *
90 gssdp_client_get_host_ip      (GSSDPClient  *client);
91
92 gboolean
93 gssdp_client_get_active       (GSSDPClient  *client);
94
95 G_END_DECLS
96
97 #endif /* __GSSDP_CLIENT_H__ */