summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-06-29 13:08:21 +0200
committerJens Georg <mail@jensge.org>2014-06-29 13:27:40 +0200
commitadaad1bc9eddcd1e9e4a6b25015271ec327377b1 (patch)
tree8acf9618cde1ede81e6891be4bce6b5f60709d46
parentaccd23ac20b6ec3f7f0ac9d9d7b38a67ac6d616d (diff)
downloadgupnp-adaad1bc9eddcd1e9e4a6b25015271ec327377b1.tar.gz
Avoid redefinition of GUPnPDevice and GUPnPService
This was a C++11 feature. Signed-off-by: Jens Georg <mail@jensge.org> https://bugzilla.gnome.org/show_bug.cgi?id=731209
-rw-r--r--libgupnp/gupnp-acl-private.h1
-rw-r--r--libgupnp/gupnp-acl.c1
-rw-r--r--libgupnp/gupnp-acl.h20
-rw-r--r--libgupnp/gupnp-context.c1
4 files changed, 13 insertions, 10 deletions
diff --git a/libgupnp/gupnp-acl-private.h b/libgupnp/gupnp-acl-private.h
index 16c9187..69b060d 100644
--- a/libgupnp/gupnp-acl-private.h
+++ b/libgupnp/gupnp-acl-private.h
@@ -28,6 +28,7 @@
#include "gupnp-acl.h"
#include "gupnp-context.h"
+#include "gupnp-service.h"
G_BEGIN_DECLS
diff --git a/libgupnp/gupnp-acl.c b/libgupnp/gupnp-acl.c
index 0d4c55a..cab2e1f 100644
--- a/libgupnp/gupnp-acl.c
+++ b/libgupnp/gupnp-acl.c
@@ -32,6 +32,7 @@
#include "gupnp-acl.h"
#include "gupnp-acl-private.h"
+#include "gupnp-device.h"
G_DEFINE_INTERFACE(GUPnPAcl, gupnp_acl, G_TYPE_OBJECT)
diff --git a/libgupnp/gupnp-acl.h b/libgupnp/gupnp-acl.h
index df5ebe8..2d639b2 100644
--- a/libgupnp/gupnp-acl.h
+++ b/libgupnp/gupnp-acl.h
@@ -68,22 +68,22 @@ typedef struct _GUPnPAcl GUPnPAcl;
typedef struct _GUPnPAclInterface GUPnPAclInterface;
/* Forward declarations to avoid recursive includes */
-typedef struct _GUPnPDevice GUPnPDevice;
-typedef struct _GUPnPService GUPnPService;
+struct _GUPnPDevice;
+struct _GUPnPService;
struct _GUPnPAclInterface {
GTypeInterface parent;
gboolean (*is_allowed) (GUPnPAcl *self,
- GUPnPDevice *device,
- GUPnPService *service,
+ struct _GUPnPDevice *device,
+ struct _GUPnPService *service,
const char *path,
const char *address,
const char *agent);
void (*is_allowed_async) (GUPnPAcl *self,
- GUPnPDevice *device,
- GUPnPService *service,
+ struct _GUPnPDevice *device,
+ struct _GUPnPService *service,
const char *path,
const char *address,
const char *agent,
@@ -108,16 +108,16 @@ struct _GUPnPAclInterface {
gboolean
gupnp_acl_is_allowed (GUPnPAcl *self,
- GUPnPDevice *device,
- GUPnPService *service,
+ struct _GUPnPDevice *device,
+ struct _GUPnPService *service,
const char *path,
const char *address,
const char *agent);
void
gupnp_acl_is_allowed_async (GUPnPAcl *self,
- GUPnPDevice *device,
- GUPnPService *service,
+ struct _GUPnPDevice *device,
+ struct _GUPnPService *service,
const char *path,
const char *address,
const char *agent,
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index b942369..795d8d9 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -59,6 +59,7 @@
#include "gupnp-marshal.h"
#include "gena-protocol.h"
#include "http-headers.h"
+#include "gupnp-device.h"
#define GUPNP_CONTEXT_DEFAULT_LANGUAGE "en"