gupnp-service.h
来自「另一 UPNP SDK 支持在UNIX/LINUX上运行。 UPnP是一种网络协」· C头文件 代码 · 共 166 行
H
166 行
/* * 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., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#ifndef __GUPNP_SERVICE_H__#define __GUPNP_SERVICE_H__#include <stdarg.h>#include "gupnp-service-info.h"G_BEGIN_DECLSGTypegupnp_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;#define GUPNP_TYPE_SERVICE_ACTION (gupnp_service_action_get_type ())typedef struct _GUPnPServicePrivate GUPnPServicePrivate;/** * GUPnPService: * * This struct contains private data only, and should be accessed using the * functions below. */typedef struct { GUPnPServiceInfo parent; GUPnPServicePrivate *priv;} GUPnPService;typedef struct { GUPnPServiceInfoClass parent_class; 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);} GUPnPServiceClass;const char *gupnp_service_action_get_name (GUPnPServiceAction *action);GList *gupnp_service_action_get_locales (GUPnPServiceAction *action);voidgupnp_service_action_get (GUPnPServiceAction *action, ...) G_GNUC_NULL_TERMINATED;voidgupnp_service_action_get_valist (GUPnPServiceAction *action, va_list var_args);voidgupnp_service_action_get_value (GUPnPServiceAction *action, const char *argument, GValue *value);voidgupnp_service_action_set (GUPnPServiceAction *action, ...) G_GNUC_NULL_TERMINATED;voidgupnp_service_action_set_valist (GUPnPServiceAction *action, va_list var_args);voidgupnp_service_action_set_value (GUPnPServiceAction *action, const char *argument, const GValue *value);voidgupnp_service_action_return (GUPnPServiceAction *action);voidgupnp_service_action_return_error (GUPnPServiceAction *action, guint error_code, const char *error_description);voidgupnp_service_notify (GUPnPService *service, ...) G_GNUC_NULL_TERMINATED;voidgupnp_service_notify_valist (GUPnPService *service, va_list var_args);voidgupnp_service_notify_value (GUPnPService *service, const char *variable, const GValue *value);voidgupnp_service_freeze_notify (GUPnPService *service);voidgupnp_service_thaw_notify (GUPnPService *service);voidgupnp_service_signals_autoconnect (GUPnPService *service, gpointer user_data, GError **error);G_END_DECLS#endif /* __GUPNP_SERVICE_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?