/usr/include/gupnp-1.0/libgupnp/gupnp-service.h is in libgupnp-1.0-dev 0.20.16-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | /*
* Copyright (C) 2007 OpenedHand Ltd.
*
* Author: Jorn Baayen <jorn@openedhand.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GUPNP_SERVICE_H__
#define __GUPNP_SERVICE_H__
#include <stdarg.h>
#include "gupnp-service-info.h"
G_BEGIN_DECLS
GType
gupnp_service_get_type (void) G_GNUC_CONST;
#define GUPNP_TYPE_SERVICE \
(gupnp_service_get_type ())
#define GUPNP_SERVICE(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
GUPNP_TYPE_SERVICE, \
GUPnPService))
#define GUPNP_SERVICE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_CAST ((obj), \
GUPNP_TYPE_SERVICE, \
GUPnPServiceClass))
#define GUPNP_IS_SERVICE(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
GUPNP_TYPE_SERVICE))
#define GUPNP_IS_SERVICE_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE ((obj), \
GUPNP_TYPE_SERVICE))
#define GUPNP_SERVICE_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
GUPNP_TYPE_SERVICE, \
GUPnPServiceClass))
/**
* GUPnPServiceAction:
*
* Opaque structure for holding in-progress action data.
**/
typedef struct _GUPnPServiceAction GUPnPServiceAction;
GType
gupnp_service_action_get_type (void) G_GNUC_CONST;
#define GUPNP_TYPE_SERVICE_ACTION (gupnp_service_action_get_type ())
typedef struct _GUPnPServicePrivate GUPnPServicePrivate;
typedef struct _GUPnPService GUPnPService;
typedef struct _GUPnPServiceClass GUPnPServiceClass;
/**
* GUPnPService:
*
* This struct contains private data only, and should be accessed using the
* functions below.
*/
struct _GUPnPService {
GUPnPServiceInfo parent;
GUPnPServicePrivate *priv;
};
struct _GUPnPServiceClass {
GUPnPServiceInfoClass parent_class;
/* <signals> */
void (* action_invoked) (GUPnPService *service,
GUPnPServiceAction *action);
void (* query_variable) (GUPnPService *service,
const char *variable,
GValue *value);
void (* notify_failed) (GUPnPService *service,
const GList *callback_urls,
const GError *reason);
/* future padding */
void (* _gupnp_reserved1) (void);
void (* _gupnp_reserved2) (void);
void (* _gupnp_reserved3) (void);
void (* _gupnp_reserved4) (void);
};
const char *
gupnp_service_action_get_name (GUPnPServiceAction *action);
GList *
gupnp_service_action_get_locales (GUPnPServiceAction *action);
void
gupnp_service_action_get (GUPnPServiceAction *action,
...) G_GNUC_NULL_TERMINATED;
void
gupnp_service_action_get_valist (GUPnPServiceAction *action,
va_list var_args);
GList *
gupnp_service_action_get_values (GUPnPServiceAction *action,
GList *arg_names,
GList *arg_types);
void
gupnp_service_action_get_value (GUPnPServiceAction *action,
const char *argument,
GValue *value);
GValue *
gupnp_service_action_get_gvalue (GUPnPServiceAction *action,
const char *argument,
GType type);
void
gupnp_service_action_set (GUPnPServiceAction *action,
...) G_GNUC_NULL_TERMINATED;
void
gupnp_service_action_set_valist (GUPnPServiceAction *action,
va_list var_args);
void
gupnp_service_action_set_values (GUPnPServiceAction *action,
GList *arg_names,
GList *arg_values);
void
gupnp_service_action_set_value (GUPnPServiceAction *action,
const char *argument,
const GValue *value);
void
gupnp_service_action_return (GUPnPServiceAction *action);
void
gupnp_service_action_return_error (GUPnPServiceAction *action,
guint error_code,
const char *error_description);
SoupMessage *
gupnp_service_action_get_message (GUPnPServiceAction *action);
guint
gupnp_service_action_get_argument_count
(GUPnPServiceAction *action);
void
gupnp_service_notify (GUPnPService *service,
...) G_GNUC_NULL_TERMINATED;
void
gupnp_service_notify_valist (GUPnPService *service,
va_list var_args);
void
gupnp_service_notify_value (GUPnPService *service,
const char *variable,
const GValue *value);
void
gupnp_service_freeze_notify (GUPnPService *service);
void
gupnp_service_thaw_notify (GUPnPService *service);
void
gupnp_service_signals_autoconnect (GUPnPService *service,
gpointer user_data,
GError **error);
G_END_DECLS
#endif /* __GUPNP_SERVICE_H__ */
|