⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gupnp-service-proxy.h

📁 另一 UPNP SDK 支持在UNIX/LINUX上运行。 UPnP是一种网络协议
💻 H
字号:
/* * Copyright (C) 2006, 2007, 2008 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_PROXY_H__#define __GUPNP_SERVICE_PROXY_H__#include "gupnp-error.h"#include "gupnp-service-info.h"G_BEGIN_DECLSGTypegupnp_service_proxy_get_type (void) G_GNUC_CONST;#define GUPNP_TYPE_SERVICE_PROXY \                (gupnp_service_proxy_get_type ())#define GUPNP_SERVICE_PROXY(obj) \                (G_TYPE_CHECK_INSTANCE_CAST ((obj), \                 GUPNP_TYPE_SERVICE_PROXY, \                 GUPnPServiceProxy))#define GUPNP_SERVICE_PROXY_CLASS(obj) \                (G_TYPE_CHECK_CLASS_CAST ((obj), \                 GUPNP_TYPE_SERVICE_PROXY, \                 GUPnPServiceProxyClass))#define GUPNP_IS_SERVICE_PROXY(obj) \                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \                 GUPNP_TYPE_SERVICE_PROXY))#define GUPNP_IS_SERVICE_PROXY_CLASS(obj) \                (G_TYPE_CHECK_CLASS_TYPE ((obj), \                 GUPNP_TYPE_SERVICE_PROXY))#define GUPNP_SERVICE_PROXY_GET_CLASS(obj) \                (G_TYPE_INSTANCE_GET_CLASS ((obj), \                 GUPNP_TYPE_SERVICE_PROXY, \                 GUPnPServiceProxyClass))typedef struct _GUPnPServiceProxyPrivate GUPnPServiceProxyPrivate;/** * GUPnPServiceProxy: * * This struct contains private data only, and should be accessed using the * functions below. */typedef struct {        GUPnPServiceInfo parent;        GUPnPServiceProxyPrivate *priv;} GUPnPServiceProxy;typedef struct {        GUPnPServiceInfoClass parent_class;        /* signals */        void (* subscription_lost) (GUPnPServiceProxy *proxy,                                    const GError      *reason);        /* future padding */        void (* _gupnp_reserved1) (void);        void (* _gupnp_reserved2) (void);        void (* _gupnp_reserved3) (void);        void (* _gupnp_reserved4) (void);} GUPnPServiceProxyClass;/** * GUPnPServiceProxyAction * * Opaque structure for holding in-progress action data. **/typedef struct _GUPnPServiceProxyAction GUPnPServiceProxyAction;/** * GUPnPServiceProxyActionCallback: * @proxy: The #GUPnPServiceProxy @action is called from * @action: The #GUPnPServiceProxyAction in progress * @user_data: User data * * Callback notifying that @action on @proxy has returned and * gupnp_service_proxy_end_action() etc can be called. **/typedef void (* GUPnPServiceProxyActionCallback) (                                     GUPnPServiceProxy       *proxy,                                     GUPnPServiceProxyAction *action,                                     gpointer                 user_data);/** * GUPnPServiceProxyNotifyCallback: * @proxy: The #GUPnPServiceProxy the notification originates from * @variable: The name of the variable being notified * @value: The #GValue of the variable being notified * @user_data: User data * * Callback notifying that the state variable @variable on @proxy has changed to * @value. **/typedef void (* GUPnPServiceProxyNotifyCallback) (GUPnPServiceProxy *proxy,                                                  const char        *variable,                                                  GValue            *value,                                                  gpointer           user_data);gbooleangupnp_service_proxy_send_action    (GUPnPServiceProxy              *proxy,                                    const char                     *action,                                    GError                        **error,                                    ...) G_GNUC_NULL_TERMINATED;gbooleangupnp_service_proxy_send_action_valist                                   (GUPnPServiceProxy              *proxy,                                    const char                     *action,                                    GError                        **error,                                    va_list                         var_args);gbooleangupnp_service_proxy_send_action_hash                                   (GUPnPServiceProxy              *proxy,                                    const char                     *action,                                    GError                        **error,                                    GHashTable                     *in_hash,                                    GHashTable                     *out_hash);GUPnPServiceProxyAction *gupnp_service_proxy_begin_action   (GUPnPServiceProxy              *proxy,                                    const char                     *action,                                    GUPnPServiceProxyActionCallback callback,                                    gpointer                        user_data,                                    ...) G_GNUC_NULL_TERMINATED;GUPnPServiceProxyAction *gupnp_service_proxy_begin_action_valist                                   (GUPnPServiceProxy              *proxy,                                    const char                     *action,                                    GUPnPServiceProxyActionCallback callback,                                    gpointer                        user_data,                                    va_list                         var_args);GUPnPServiceProxyAction *gupnp_service_proxy_begin_action_hash                                   (GUPnPServiceProxy              *proxy,                                    const char                     *action,                                    GUPnPServiceProxyActionCallback callback,                                    gpointer                        user_data,                                    GHashTable                     *hash);gbooleangupnp_service_proxy_end_action     (GUPnPServiceProxy              *proxy,                                    GUPnPServiceProxyAction        *action,                                    GError                        **error,                                    ...) G_GNUC_NULL_TERMINATED;gbooleangupnp_service_proxy_end_action_valist                                   (GUPnPServiceProxy              *proxy,                                    GUPnPServiceProxyAction        *action,                                    GError                        **error,                                    va_list                         var_args);gbooleangupnp_service_proxy_end_action_hash                                   (GUPnPServiceProxy              *proxy,                                    GUPnPServiceProxyAction        *action,                                    GError                        **error,                                    GHashTable                     *hash);voidgupnp_service_proxy_cancel_action  (GUPnPServiceProxy              *proxy,                                    GUPnPServiceProxyAction        *action);gbooleangupnp_service_proxy_add_notify     (GUPnPServiceProxy              *proxy,                                    const char                     *variable,                                    GType                           type,                                    GUPnPServiceProxyNotifyCallback callback,                                    gpointer                        user_data);gbooleangupnp_service_proxy_remove_notify  (GUPnPServiceProxy              *proxy,                                    const char                     *variable,                                    GUPnPServiceProxyNotifyCallback callback,                                    gpointer                        user_data);voidgupnp_service_proxy_set_subscribed (GUPnPServiceProxy              *proxy,                                    gboolean                        subscribed);gbooleangupnp_service_proxy_get_subscribed (GUPnPServiceProxy              *proxy);G_END_DECLS#endif /* __GUPNP_SERVICE_PROXY_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -