Fix the lib path
[external/gssdp.git] / libgssdp / gssdp-resource-group.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_RESOURCE_GROUP_H__
23 #define __GSSDP_RESOURCE_GROUP_H__
24
25 #include "gssdp-client.h"
26
27 G_BEGIN_DECLS
28
29 GType
30 gssdp_resource_group_get_type (void) G_GNUC_CONST;
31
32 #define GSSDP_TYPE_RESOURCE_GROUP \
33                 (gssdp_resource_group_get_type ())
34 #define GSSDP_RESOURCE_GROUP(obj) \
35                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36                  GSSDP_TYPE_RESOURCE_GROUP, \
37                  GSSDPResourceGroup))
38 #define GSSDP_RESOURCE_GROUP_CLASS(klass) \
39                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
40                  GSSDP_TYPE_RESOURCE_GROUP, \
41                  GSSDPResourceGroupClass))
42 #define GSSDP_IS_RESOURCE_GROUP(obj) \
43                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
44                  GSSDP_TYPE_RESOURCE_GROUP))
45 #define GSSDP_IS_RESOURCE_GROUP_CLASS(klass) \
46                 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
47                  GSSDP_TYPE_RESOURCE_GROUP))
48 #define GSSDP_RESOURCE_GROUP_GET_CLASS(obj) \
49                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50                  GSSDP_TYPE_RESOURCE_GROUP, \
51                  GSSDPResourceGroupClass))
52
53 typedef struct _GSSDPResourceGroupPrivate GSSDPResourceGroupPrivate;
54
55 typedef struct {
56         GObject parent;
57
58         GSSDPResourceGroupPrivate *priv;
59 } GSSDPResourceGroup;
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 } GSSDPResourceGroupClass;
70
71 GSSDPResourceGroup *
72 gssdp_resource_group_new                 (GSSDPClient        *client);
73
74 GSSDPClient *
75 gssdp_resource_group_get_client          (GSSDPResourceGroup *resource_group);
76
77 void
78 gssdp_resource_group_set_max_age         (GSSDPResourceGroup *resource_group,
79                                           guint               max_age);
80
81 guint
82 gssdp_resource_group_get_max_age         (GSSDPResourceGroup *resource_group);
83
84 void
85 gssdp_resource_group_set_available       (GSSDPResourceGroup *resource_group,
86                                           gboolean            available);
87
88 gboolean
89 gssdp_resource_group_get_available       (GSSDPResourceGroup *resource_group);
90
91 void
92 gssdp_resource_group_set_message_delay         (GSSDPResourceGroup *resource_group,
93                                                 guint               message_delay);
94
95 guint
96 gssdp_resource_group_get_message_delay         (GSSDPResourceGroup *resource_group);
97
98 guint
99 gssdp_resource_group_add_resource        (GSSDPResourceGroup *resource_group,
100                                           const char         *target,
101                                           const char         *usn,
102                                           GList              *locations);
103
104 guint
105 gssdp_resource_group_add_resource_simple (GSSDPResourceGroup *resource_group,
106                                           const char         *target,
107                                           const char         *usn,
108                                           const char         *location);
109
110 void
111 gssdp_resource_group_remove_resource     (GSSDPResourceGroup *resource_group,
112                                           guint               resource_id);
113
114 G_END_DECLS
115
116 #endif /* __GSSDP_RESOURCE_GROUP_H__ */