Debian Codegraph @

libgupnp/gupnp-acl-private.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2013,2014 Jens Georg <[email protected]>
3 *
4 * Author: Jens Georg <[email protected]>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
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 * AclServerHandler:
24 *
25 * Closure for the ACL server handler that adds
26 * a) Some data from the original server handler such as user_data and callback
27 * b) Saves information for later use to pass on to ACL such as the service and context
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 * AclAsyncHandler:
40 *
41 * Closure when doing an async ACL request. Stores everything passed into the server handler
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