Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleaned dependencies

  • Loading branch information...
commit 036246b6dbeb228a80346b9f7b09037e46fe2bb4 1 parent 6194068
@juzna authored
View
3  AddressAPI.cpp
@@ -1,10 +1,9 @@
+#include <stdio.h>
#include "JSObject.h"
#include "variant_list.h"
#include "DOM/Document.h"
#include "AddressAPI.h"
-// #include "common.h"
-#include "lock.h"
View
3  AddressAPI.h
@@ -2,12 +2,11 @@
#include <sstream>
#include "JSAPIAuto.h"
#include "BrowserHostWrapper.h"
+#include "types.h"
#ifndef H_AddressAPI
#define H_AddressAPI
-#include "linphoneAPI.h"
-
class AddressAPI : public FB::JSAPIAuto
{
View
2  CallAPI.cpp
@@ -4,8 +4,6 @@
#include "CallAPI.h"
#include "AddressAPI.h"
-// #include "common.h"
-#include "lock.h"
#define mmethod(name) make_method(this, &CallAPI::name)
View
3  CallAPI.h
@@ -4,9 +4,6 @@
#include "BrowserHostWrapper.h"
#include "types.h"
-#include <linphonecore.h>
-#include "private.h" /*coreapi/private.h, needed for LINPHONE_VERSION */
-
#ifndef H_CallAPI
#define H_CallAPI
View
6 common.h
@@ -1,7 +1 @@
-// Common macros for all
-#define mmethod(name) make_method(this, &linphoneAPI::name)
-#define rmethod(name) registerMethod(#name, make_method(this, &linphoneAPI::call_##name))
-#define rmethod2(name, func) registerMethod(#name, make_method(this, &linphoneAPI::call_##func))
-#define rproperty(name) registerProperty(#name, make_property(this, &linphoneAPI::get_##name, &linphoneAPI::set_##name))
-#define rpropertyg(name) registerProperty(#name, make_property(this, &linphoneAPI::get_##name))
View
12 linphoneAPI.cpp
@@ -4,6 +4,7 @@
\**********************************************************/
+#include <stdio.h>
#include "JSObject.h"
#include "variant_list.h"
#include "DOM/Document.h"
@@ -11,9 +12,14 @@
#include "linphoneAPI.h"
#include "sampleAPI.h"
#include "CallAPI.h"
-#include "common.h"
-#include "lock.h"
-#include <stdio.h>
+
+
+#define mmethod(name) make_method(this, &linphoneAPI::name)
+#define rmethod(name) registerMethod(#name, make_method(this, &linphoneAPI::call_##name))
+#define rmethod2(name, func) registerMethod(#name, make_method(this, &linphoneAPI::call_##func))
+#define rproperty(name) registerProperty(#name, make_property(this, &linphoneAPI::get_##name, &linphoneAPI::set_##name))
+#define rpropertyg(name) registerProperty(#name, make_property(this, &linphoneAPI::get_##name))
+
// Original callbacks from linphone core
#define GLC if(!linphone_core_get_user_data(lc)) printf("not found linphone api\n"); else ((linphoneAPI*) linphone_core_get_user_data(lc))
View
1  linphoneAPI.h
@@ -19,7 +19,6 @@
#ifndef H_linphoneAPI
#define H_linphoneAPI
-#include "lock.h"
#define Lo Lock lck(&mutex, NULL);
View
4 sampleAPI.h
@@ -2,12 +2,12 @@
#include <sstream>
#include "JSAPIAuto.h"
#include "BrowserHostWrapper.h"
+#include "types.h"
+#include <stdio.h>
#ifndef H_sampleAPI
#define H_sampleAPI
-#include "linphoneAPI.h"
-
class sampleAPI : public FB::JSAPIAuto
{
View
3  types.h
@@ -1,6 +1,9 @@
#include "lock.h"
+#include <linphonecore.h>
+#include "private.h" /*coreapi/private.h, needed for LINPHONE_VERSION */
+
// Core
class linphone;
FB_FORWARD_PTR(linphone);
Please sign in to comment.
Something went wrong with that request. Please try again.