#include "asp-manager.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SERVICE_DBUS_ERROR_NAME "net.asp.service.Error.Failed"
#define SESSION_DBUS_ERROR_NAME "net.asp.session.Error.Failed"
guint32 session_id, const gchar *ip, gint32 port, gint32 protocol,
gint32 status);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ASP_MANAGER_GDBUS_H__ */
#endif /* USE_DLOG */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define IPSTR_MAXLEN 40
#define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
#define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
gint32 macaddr_atoe(const gchar *p, guint8 mac[]);
gint32 asp_dbus_unpack_ay(guint8 *dst, GVariant *src, gint32 size);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ASP_MANAGER_UTIL_H__ */
#define EXPORT_API __attribute__((visibility("default")))
#include <glib.h>
+#include <gio/gio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#define MAC_LEN 6
#define MACSTR_LEN 17
asp_s *asp_get_manager();
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ASP_MANAGER__ */
#include "asp-manager-util.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define ASP_SERVICE_MACSTR_LEN 18
#define ASP_SERVICE_DEVICE_NAME_LEN 33
#define ASP_SERVICE_MACADDR_LEN 6
GHashTable *service_info,
asp_service_status_e service_status);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ASP_SERVICE_H__ */
#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*****************************************************************************
* Macros and Typedefs
*****************************************************************************/
*/
gboolean asp_session_set_port_status_cb(asp_session_port_status_cb cb, gpointer user_data);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ASP_SESSION_H__ */
#include "asp-session.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void (*asp_tech_session_request_cb)(gint32 error_code, const guint8 *session_mac, guint32 session_id, guint32 adv_id, const gchar *device_name, size_t name_length, const guint8 *session_info, size_t info_length, gboolean get_pin, guint32 pin, gpointer user_data);
typedef void (*asp_tech_session_config_request_cb)(gint32 error_code, const guint8 *session_mac, guint32 session_id, gboolean get_pin, guint32 pin, gpointer user_data);
typedef void (*asp_tech_connect_status_cb)(gint32 error_code, const guint8 *session_mac, guint32 session_id, asp_session_connect_status_e status, gpointer user_data);
void asp_manager_event(gpointer ctx, asp_event_type_e event, asp_event_data *data);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ASP_TECH_H__ */
Name: asp-manager
Summary: ASP(application service platform) manager
-Version: 0.0.24
+Version: 0.0.25
Release: 1
Group: Network & Connectivity/Other
License: Apache-2.0