session: Move struct connman_session to session.h
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 19 Sep 2012 11:28:06 +0000 (13:28 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 27 Sep 2012 08:28:28 +0000 (10:28 +0200)
include/session.h
src/connman.h

index deff0fc..2871d50 100644 (file)
@@ -32,6 +32,8 @@ extern "C" {
 #define CONNMAN_SESSION_POLICY_PRIORITY_DEFAULT     0
 #define CONNMAN_SESSION_POLICY_PRIORITY_HIGH      100
 
+struct connman_session;
+
 /*
  * The session are identified through the pid is only a temporary solution
  */
index 120de30..c70f6ae 100644 (file)
@@ -691,7 +691,8 @@ void __connman_service_notify(struct connman_service *service,
 int __connman_service_counter_register(const char *counter);
 void __connman_service_counter_unregister(const char *counter);
 
-struct connman_session;
+#include <connman/session.h>
+
 struct service_entry;
 typedef connman_bool_t (* service_match_cb) (struct connman_session *session,
                                        struct connman_service *service);