| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#ifndef GUPNP_ACL_PRIVATE_H |
| 10 |
#define GUPNP_ACL_PRIVATE_H |
| 11 |
|
| 12 |
#include <glib.h> |
| 13 |
#include <glib-object.h> |
| 14 |
#include <libsoup/soup-session.h> |
| 15 |
|
| 16 |
#include "gupnp-acl.h" |
| 17 |
#include "gupnp-context.h" |
| 18 |
#include "gupnp-service.h" |
| 19 |
|
| 20 |
G_BEGIN_DECLS |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
typedef struct _AclServerHandler |
| 30 |
{ |
| 31 |
GUPnPService *service; |
| 32 |
GUPnPContext *context; |
| 33 |
SoupServerCallback callback; |
| 34 |
gpointer user_data; |
| 35 |
GDestroyNotify notify; |
| 36 |
} AclServerHandler; |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
typedef struct _AclAsyncHandler |
| 44 |
{ |
| 45 |
SoupServer *server; |
| 46 |
SoupServerMessage *message; |
| 47 |
char *path; |
| 48 |
GHashTable *query; |
| 49 |
AclServerHandler *handler; |
| 50 |
} AclAsyncHandler; |
| 51 |
|
| 52 |
G_GNUC_INTERNAL AclServerHandler * |
| 53 |
acl_server_handler_new (GUPnPService *service, |
| 54 |
GUPnPContext *context, |
| 55 |
SoupServerCallback callback, |
| 56 |
gpointer user_data, |
| 57 |
GDestroyNotify notify); |
| 58 |
|
| 59 |
G_GNUC_INTERNAL void |
| 60 |
acl_server_handler_free (AclServerHandler *handler); |
| 61 |
|
| 62 |
G_GNUC_INTERNAL AclAsyncHandler * |
| 63 |
acl_async_handler_new (SoupServer *server, |
| 64 |
SoupServerMessage *message, |
| 65 |
const char *path, |
| 66 |
GHashTable *query, |
| 67 |
AclServerHandler *handler); |
| 68 |
|
| 69 |
G_GNUC_INTERNAL void |
| 70 |
acl_async_handler_free (AclAsyncHandler *handler); |
| 71 |
|
| 72 |
|
| 73 |
G_END_DECLS |
| 74 |
|
| 75 |
#endif |