ENDIF("${ARCH}" STREQUAL "arm")
FIND_PROGRAM(DBUS_BINDING_TOOL NAMES dbus-binding-tool)
-EXEC_PROGRAM("${DBUS_BINDING_TOOL}" ARGS "--prefix=mobileap ${INCLUDE_DIR}/mobileap-dbus-interface.xml --mode=glib-server --output=${INCLUDE_DIR}/mobileap-server-stub.h")
+EXEC_PROGRAM("${DBUS_BINDING_TOOL}" ARGS "--prefix=tethering ${INCLUDE_DIR}/tethering-dbus-interface.xml --mode=glib-server --output=${INCLUDE_DIR}/tethering-server-stub.h")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DVENDOR=\"${APP_VENDOR}\"")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/com.samsung.mobileap.service DESTINATION share/dbus-1/services)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/packaging/org.tizen.tethering.service DESTINATION share/dbus-1/services)
G_TYPE_STRING, G_TYPE_INVALID))
-#define SOFTAP_SERVICE_OBJECT_PATH "/MobileAP"
-#define SOFTAP_SERVICE_NAME "com.samsung.mobileap"
-#define SOFTAP_SERVICE_INTERFACE "com.samsung.mobileap"
+#define TETHERING_SERVICE_OBJECT_PATH "/Tethering"
+#define TETHERING_SERVICE_NAME "org.tizen.tethering"
+#define TETHERING_SERVICE_INTERFACE "org.tizen.tethering"
#define SIGNAL_NAME_NET_CLOSED "net_closed"
#define SIGNAL_NAME_STA_CONNECT "sta_connected"
char ssid[MOBILE_AP_WIFI_SSID_MAX_LEN + 1];
char key[MOBILE_AP_WIFI_KEY_MAX_LEN + 1];
char security_type[SECURITY_TYPE_LEN];
-} MobileAPObject;
+} TetheringObject;
typedef struct {
/* The parent class state. */
/* class member */
guint signals[E_SIGNAL_MAX];
-} MobileAPObjectClass;
+} TetheringObjectClass;
typedef struct {
unsigned int number; /* Number of connected device */
int _mh_core_set_ip_address(const char *if_name, const in_addr_t ip);
-gboolean _init_tethering(MobileAPObject *obj);
-gboolean _deinit_tethering(MobileAPObject *obj);
+gboolean _init_tethering(TetheringObject *obj);
+gboolean _deinit_tethering(TetheringObject *obj);
gboolean _mobileap_clear_state(int state);
#include "mobileap_agent.h"
-void _bt_get_remote_device_name(MobileAPObject *obj, const char *mac, char **name);
-mobile_ap_error_code_e _disable_bt_tethering(MobileAPObject *obj);
+void _bt_get_remote_device_name(TetheringObject *obj, const char *mac, char **name);
+mobile_ap_error_code_e _disable_bt_tethering(TetheringObject *obj);
-gboolean mobileap_enable_bt_tethering(MobileAPObject *obj,
+gboolean tethering_enable_bt_tethering(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_disable_bt_tethering(MobileAPObject *obj,
+gboolean tethering_disable_bt_tethering(TetheringObject *obj,
DBusGMethodInvocation *context);
#endif
gint _slist_find_station_by_mac(gconstpointer a, gconstpointer b);
gint _slist_find_station_by_ip_addr(gconstpointer a, gconstpointer b);
-void _emit_mobileap_dbus_signal(MobileAPObject *obj,
+void _emit_mobileap_dbus_signal(TetheringObject *obj,
mobile_ap_sig_e num, const gchar *message);
void _send_dbus_station_info(const char *member,
mobile_ap_station_info_t *info);
#include "mobileap_agent.h"
-mobile_ap_error_code_e _disable_usb_tethering(MobileAPObject *obj);
+mobile_ap_error_code_e _disable_usb_tethering(TetheringObject *obj);
-gboolean mobileap_enable_usb_tethering(MobileAPObject *obj,
+gboolean tethering_enable_usb_tethering(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_disable_usb_tethering(MobileAPObject *obj,
+gboolean tethering_disable_usb_tethering(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_get_usb_station_info(MobileAPObject *obj,
+gboolean tethering_get_usb_station_info(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_get_usb_interface_info(MobileAPObject *obj,
+gboolean tethering_get_usb_interface_info(TetheringObject *obj,
DBusGMethodInvocation *context);
#endif
void _register_wifi_station_handler(void);
void _add_wifi_device_to_array(softap_device_info_t *di, GPtrArray *array);
-mobile_ap_error_code_e _disable_wifi_tethering(MobileAPObject *obj);
+mobile_ap_error_code_e _disable_wifi_tethering(TetheringObject *obj);
/* Dbus method */
-gboolean mobileap_enable_wifi_tethering(MobileAPObject *obj, gchar *ssid,
+gboolean tethering_enable_wifi_tethering(TetheringObject *obj, gchar *ssid,
gchar *key, gint hide_mode,
DBusGMethodInvocation *context);
-gboolean mobileap_disable_wifi_tethering(MobileAPObject *obj,
+gboolean tethering_disable_wifi_tethering(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_get_wifi_tethering_hide_mode(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_hide_mode(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_set_wifi_tethering_hide_mode(MobileAPObject *obj,
+gboolean tethering_set_wifi_tethering_hide_mode(TetheringObject *obj,
gint hide_mode, DBusGMethodInvocation *context);
-gboolean mobileap_get_wifi_tethering_ssid(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_ssid(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_get_wifi_tethering_security_type(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_security_type(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_set_wifi_tethering_security_type(MobileAPObject *obj,
+gboolean tethering_set_wifi_tethering_security_type(TetheringObject *obj,
gchar *security_type, DBusGMethodInvocation *context);
-gboolean mobileap_get_wifi_tethering_passphrase(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_passphrase(TetheringObject *obj,
DBusGMethodInvocation *context);
-gboolean mobileap_set_wifi_tethering_passphrase(MobileAPObject *obj,
+gboolean tethering_set_wifi_tethering_passphrase(TetheringObject *obj,
gchar *passphrase, guint len, DBusGMethodInvocation *context);
#endif /* __MOBILEAP_WIFI_H__ */
"http://standards.freedesktop.org/dbus/1.0/introspect.dtd">
<node>
- <interface name="com.samsung.mobileap">
+ <interface name="org.tizen.tethering">
<!-- Method definitions -->
%files
%manifest mobileap-agent.manifest
%defattr(-,root,root,-)
-/usr/share/dbus-1/services/com.samsung.mobileap.service
+/usr/share/dbus-1/services/org.tizen.tethering.service
%{_bindir}/mobileap-agent
%changelog
[D-BUS Service]
-Name=com.samsung.mobileap
+Name=org.tizen.tethering
Exec=/usr/bin/mobileap-agent
return;
}
-static mobile_ap_error_code_e __activate_bt_nap(MobileAPObject *obj)
+static mobile_ap_error_code_e __activate_bt_nap(TetheringObject *obj)
{
int bt_ret = BT_ERROR_NONE;
return;
int ret;
- MobileAPObject *obj = (MobileAPObject *)user_data;
+ TetheringObject *obj = (TetheringObject *)user_data;
DBusGMethodInvocation *context = obj->bt_context;
obj->bt_context = NULL;
return;
}
-void _bt_get_remote_device_name(MobileAPObject *obj, const char *mac, char **name)
+void _bt_get_remote_device_name(TetheringObject *obj, const char *mac, char **name)
{
if (obj == NULL || mac == NULL || name == NULL) {
ERR("Invalid param\n");
return;
}
-mobile_ap_error_code_e _disable_bt_tethering(MobileAPObject *obj)
+mobile_ap_error_code_e _disable_bt_tethering(TetheringObject *obj)
{
int bt_ret;
return MOBILE_AP_ERROR_NONE;
}
-gboolean mobileap_enable_bt_tethering(MobileAPObject *obj,
+gboolean tethering_enable_bt_tethering(TetheringObject *obj,
DBusGMethodInvocation *context)
{
int ret;
}
-gboolean mobileap_disable_bt_tethering(MobileAPObject *obj,
+gboolean tethering_disable_bt_tethering(TetheringObject *obj,
DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret;
#include "mobileap_notification.h"
#include "mobileap_common.h"
-#define MOBILEAP_OBJECT_GET_CLASS(obj) \
+#define TETHERING_OBJECT_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
- MOBILEAP_TYPE_OBJECT , MobileAPObjectClass))
+ TETHERING_TYPE_OBJECT , TetheringObjectClass))
-extern DBusConnection *mobileap_conn;
+extern DBusConnection *tethering_conn;
static GSList *station_list = NULL;
return g_ascii_strcasecmp(si->ip, ip_addr);
}
-void _emit_mobileap_dbus_signal(MobileAPObject *obj,
+void _emit_mobileap_dbus_signal(TetheringObject *obj,
mobile_ap_sig_e num, const gchar *message)
{
- MobileAPObjectClass *klass = MOBILEAP_OBJECT_GET_CLASS(obj);
+ TetheringObjectClass *klass = TETHERING_OBJECT_GET_CLASS(obj);
DBG("Emitting signal id [%d], with message [%s]\n", num, message);
g_signal_emit(obj, klass->signals[num], 0, message);
void _send_dbus_station_info(const char *member, mobile_ap_station_info_t *info)
{
- if (mobileap_conn == NULL)
+ if (tethering_conn == NULL)
return;
if (member == NULL || info == NULL) {
char *mac = info->mac;
char *hostname = info->hostname;
- msg = dbus_message_new_signal("/MobileAP",
- "com.samsung.mobileap",
+ msg = dbus_message_new_signal(TETHERING_SERVICE_OBJECT_PATH,
+ TETHERING_SERVICE_INTERFACE,
SIGNAL_NAME_DHCP_STATUS);
if (!msg) {
ERR("Unable to allocate D-Bus signal\n");
return;
}
- dbus_connection_send(mobileap_conn, msg, NULL);
+ dbus_connection_send(tethering_conn, msg, NULL);
dbus_message_unref(msg);
return;
return;
}
- MobileAPObject *obj = (MobileAPObject *)data;
+ TetheringObject *obj = (TetheringObject *)data;
int vconf_key = 0;
if (!_mobileap_is_enabled(MOBILE_AP_STATE_WIFI)) {
return;
}
- MobileAPObject *obj = (MobileAPObject *)data;
+ TetheringObject *obj = (TetheringObject *)data;
char *vconf_key = NULL;
if (!_mobileap_is_enabled(MOBILE_AP_STATE_WIFI)) {
return FALSE;
}
- MobileAPObject *obj = (MobileAPObject *)data;
+ TetheringObject *obj = (TetheringObject *)data;
if (_mobileap_is_enabled(MOBILE_AP_STATE_WIFI) == FALSE) {
ERR("There is no conn. via Wi-Fi tethernig. But nothing to do\n");
return FALSE;
}
- MobileAPObject *obj = (MobileAPObject *)data;
+ TetheringObject *obj = (TetheringObject *)data;
if (_mobileap_is_enabled(MOBILE_AP_STATE_BT) == FALSE) {
ERR("There is no conn. via BT tethering. But nothing to do\n");
#include "mobileap_usb.h"
#include "mobileap_network.h"
-GType mobileap_object_get_type(void);
-#define MOBILEAP_TYPE_OBJECT (mobileap_object_get_type())
-G_DEFINE_TYPE(MobileAPObject, mobileap_object, G_TYPE_OBJECT)
+GType tethering_object_get_type(void);
+#define TETHERING_TYPE_OBJECT (tethering_object_get_type())
+G_DEFINE_TYPE(TetheringObject, tethering_object, G_TYPE_OBJECT)
GMainLoop *mainloop = NULL;
int mobileap_state = MOBILE_AP_STATE_NONE;
-DBusConnection *mobileap_conn = NULL;
+DBusConnection *tethering_conn = NULL;
-gboolean mobileap_deinit(MobileAPObject *obj, GError **error);
-gboolean mobileap_disable(MobileAPObject *obj, DBusGMethodInvocation *context);
-gboolean mobileap_get_station_info(MobileAPObject *obj,
- DBusGMethodInvocation *context);
-gboolean mobileap_get_data_packet_usage(MobileAPObject *obj,
- DBusGMethodInvocation *context);
-#include "mobileap-server-stub.h"
+gboolean tethering_deinit(TetheringObject *obj, GError **error);
+gboolean tethering_disable(TetheringObject *obj, DBusGMethodInvocation *context);
+gboolean tethering_get_station_info(TetheringObject *obj,
+ DBusGMethodInvocation *context);
+gboolean tethering_get_data_packet_usage(TetheringObject *obj,
+ DBusGMethodInvocation *context);
+#include "tethering-server-stub.h"
-static void mobileap_object_init(MobileAPObject *obj)
+static void tethering_object_init(TetheringObject *obj)
{
DBG("+\n");
g_assert(obj != NULL);
obj->transfer_check_count = 0;
}
-static void mobileap_object_finalize(GObject *obj)
+static void tethering_object_finalize(GObject *obj)
{
DBG("+\n");
- G_OBJECT_CLASS(mobileap_object_parent_class)->finalize(obj);
+ G_OBJECT_CLASS(tethering_object_parent_class)->finalize(obj);
}
-static void mobileap_object_class_init(MobileAPObjectClass *klass)
+static void tethering_object_class_init(TetheringObjectClass *klass)
{
GObjectClass *object_class = (GObjectClass *)klass;
const gchar *signalNames[E_SIGNAL_MAX] = {
g_assert(klass != NULL);
- object_class->finalize = mobileap_object_finalize;
+ object_class->finalize = tethering_object_finalize;
DBG("Creating signals\n");
DBG("Binding to GLib/D-Bus\n");
- dbus_g_object_type_install_info(MOBILEAP_TYPE_OBJECT,
- &dbus_glib_mobileap_object_info);
+ dbus_g_object_type_install_info(TETHERING_TYPE_OBJECT,
+ &dbus_glib_tethering_object_info);
}
static void __add_station_info_to_array(gpointer data, gpointer user_data)
DBG("PM control [SUCCESS]\n");
}
-gboolean _init_tethering(MobileAPObject *obj)
+gboolean _init_tethering(TetheringObject *obj)
{
DBG("obj->init_count: %d\n", obj->init_count);
return TRUE;
}
-gboolean _deinit_tethering(MobileAPObject *obj)
+gboolean _deinit_tethering(TetheringObject *obj)
{
DBG("obj->init_count: %d\n", obj->init_count);
}
-gboolean mobileap_deinit(MobileAPObject *obj, GError **error)
+gboolean tethering_deinit(TetheringObject *obj, GError **error)
{
DBG("+\n");
g_assert(obj != NULL);
return TRUE;
}
-gboolean mobileap_disable(MobileAPObject *obj, DBusGMethodInvocation *context)
+gboolean tethering_disable(TetheringObject *obj, DBusGMethodInvocation *context)
{
int ret = MOBILE_AP_ERROR_NONE;
return TRUE;
}
-gboolean mobileap_get_station_info(MobileAPObject *obj,
+gboolean tethering_get_station_info(TetheringObject *obj,
DBusGMethodInvocation *context)
{
DBG("+\n");
return TRUE;
}
-gboolean mobileap_get_data_packet_usage(MobileAPObject *obj,
+gboolean tethering_get_data_packet_usage(TetheringObject *obj,
DBusGMethodInvocation *context)
{
char *if_name = NULL;
char *bt_remote_device_name = NULL;
DBusError error;
mobile_ap_type_e type = MOBILE_AP_TYPE_MAX;
- MobileAPObject *obj = (MobileAPObject *)user_data;
+ TetheringObject *obj = (TetheringObject *)user_data;
mobile_ap_station_info_t *info = NULL;
int n_station = 0;
int main(int argc, char **argv)
{
- MobileAPObject *mobileap_obj = NULL;
+ TetheringObject *tethering_obj = NULL;
DBusError dbus_error;
char *rule = "type='signal',interface='"DNSMASQ_DBUS_INTERFACE"'";
- DBusGConnection *mobileap_bus = NULL;
- DBusGProxy *mobileap_bus_proxy = NULL;
+ DBusGConnection *tethering_bus = NULL;
+ DBusGProxy *tethering_bus_proxy = NULL;
guint result = 0;
GError *error = NULL;
int mobileap_vconf_key = VCONFKEY_MOBILE_HOTSPOT_MODE_NONE;
goto failure;
}
- mobileap_bus = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
+ tethering_bus = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
if (error != NULL) {
ERR("Couldn't connect to system bus[%s]\n", error->message);
goto failure;
}
- mobileap_conn = dbus_g_connection_get_connection(mobileap_bus);
+ tethering_conn = dbus_g_connection_get_connection(tethering_bus);
- DBG("Registering the well-known name (%s)\n", SOFTAP_SERVICE_NAME);
+ DBG("Registering the well-known name (%s)\n", TETHERING_SERVICE_NAME);
- mobileap_bus_proxy = dbus_g_proxy_new_for_name(mobileap_bus,
+ tethering_bus_proxy = dbus_g_proxy_new_for_name(tethering_bus,
DBUS_SERVICE_DBUS, DBUS_PATH_DBUS, DBUS_INTERFACE_DBUS);
- if (mobileap_bus_proxy == NULL) {
+ if (tethering_bus_proxy == NULL) {
ERR("Failed to get a proxy for D-Bus\n");
goto failure;
}
- if (!dbus_g_proxy_call(mobileap_bus_proxy,
+ if (!dbus_g_proxy_call(tethering_bus_proxy,
"RequestName",
&error,
G_TYPE_STRING,
- SOFTAP_SERVICE_NAME,
+ TETHERING_SERVICE_NAME,
G_TYPE_UINT, 0, G_TYPE_INVALID, G_TYPE_UINT, &result, G_TYPE_INVALID)) {
ERR("D-Bus.RequestName RPC failed[%s]\n", error->message);
goto failure;
goto failure;
}
- g_object_unref(mobileap_bus_proxy);
- mobileap_bus_proxy = NULL;
+ g_object_unref(tethering_bus_proxy);
+ tethering_bus_proxy = NULL;
- mobileap_obj = g_object_new(MOBILEAP_TYPE_OBJECT, NULL);
- if (mobileap_obj == NULL) {
+ tethering_obj = g_object_new(TETHERING_TYPE_OBJECT, NULL);
+ if (tethering_obj == NULL) {
ERR("Failed to create one MobileAP instance.\n");
goto failure;
}
/* Registering it on the D-Bus */
- dbus_g_connection_register_g_object(mobileap_bus,
- SOFTAP_SERVICE_OBJECT_PATH, G_OBJECT(mobileap_obj));
+ dbus_g_connection_register_g_object(tethering_bus,
+ TETHERING_SERVICE_OBJECT_PATH, G_OBJECT(tethering_obj));
DBG("Ready to serve requests.\n");
_init_network(NULL);
_register_wifi_station_handler();
- _register_vconf_cb((void *)mobileap_obj);
+ _register_vconf_cb((void *)tethering_obj);
dbus_error_init(&dbus_error);
- dbus_bus_add_match(mobileap_conn, rule, &dbus_error);
+ dbus_bus_add_match(tethering_conn, rule, &dbus_error);
if (dbus_error_is_set(&dbus_error)) {
ERR("Cannot add D-BUS match rule, cause: %s", dbus_error.message);
dbus_error_free(&dbus_error);
}
DBG("Listening to D-BUS signals from dnsmasq");
- dbus_connection_add_filter(mobileap_conn, __dnsmasq_signal_filter, mobileap_obj, NULL);
+ dbus_connection_add_filter(tethering_conn, __dnsmasq_signal_filter, tethering_obj, NULL);
g_main_loop_run(mainloop);
- _unregister_vconf_cb((void *)mobileap_obj);
+ _unregister_vconf_cb((void *)tethering_obj);
_deinit_network();
failure:
ERR("Terminate the mobileap-agent\n");
- if (mobileap_bus)
- dbus_g_connection_unref(mobileap_bus);
- if (mobileap_bus_proxy)
- g_object_unref(mobileap_bus_proxy);
- if (mobileap_obj)
- g_object_unref(mobileap_obj);
+ if (tethering_bus)
+ dbus_g_connection_unref(tethering_bus);
+ if (tethering_bus_proxy)
+ g_object_unref(tethering_bus_proxy);
+ if (tethering_obj)
+ g_object_unref(tethering_obj);
return 0;
}
#include "mobileap_agent.h"
+#define MH_NOTI_APP_NAME "org.tizen.tethering"
+
static int connected_noti_id = 0;
static int timeout_noti_id = 0;
goto FAIL;
}
- ret = notification_set_application(noti, "org.tizen.tethering");
+ ret = notification_set_application(noti, MH_NOTI_APP_NAME);
if (ret != NOTIFICATION_ERROR_NONE) {
ERR("Fail to notification_set_application [%d]\n", ret);
goto FAIL;
goto FAIL;
}
- ret = notification_set_application(noti, "org.tizen.tethering");
+ ret = notification_set_application(noti, MH_NOTI_APP_NAME);
if (ret != NOTIFICATION_ERROR_NONE) {
ERR("Fail to notification_set_application [%d]\n", ret);
goto FAIL;
char *vconf_name;
int vconf_key;
- MobileAPObject *obj = (MobileAPObject *)data;
+ TetheringObject *obj = (TetheringObject *)data;
if (!_mobileap_is_enabled(MOBILE_AP_STATE_USB)) {
ERR("USB tethering is not enabled\n");
return;
}
- MobileAPObject *obj = (MobileAPObject *)data;
+ TetheringObject *obj = (TetheringObject *)data;
int ret;
int vconf_key;
}
}
-mobile_ap_error_code_e _disable_usb_tethering(MobileAPObject *obj)
+mobile_ap_error_code_e _disable_usb_tethering(TetheringObject *obj)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
return ret;
}
-gboolean mobileap_enable_usb_tethering(MobileAPObject *obj,
+gboolean tethering_enable_usb_tethering(TetheringObject *obj,
DBusGMethodInvocation *context)
{
int vconf_ret;
return FALSE;
}
-gboolean mobileap_disable_usb_tethering(MobileAPObject *obj,
+gboolean tethering_disable_usb_tethering(TetheringObject *obj,
DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
g_ptr_array_add(array, g_value_get_boxed(&value));
}
-gboolean mobileap_get_usb_station_info(MobileAPObject *obj,
+gboolean tethering_get_usb_station_info(TetheringObject *obj,
DBusGMethodInvocation *context)
{
g_assert(obj != NULL);
return TRUE;
}
-gboolean mobileap_get_usb_interface_info(MobileAPObject *obj,
+gboolean tethering_get_usb_interface_info(TetheringObject *obj,
DBusGMethodInvocation *context)
{
g_assert(obj != NULL);
static mobile_ap_error_code_e __set_passphrase(const char *passphrase, const unsigned int size);
static gboolean __send_station_event_cb(gpointer data);
static void __handle_station_signal(int sig);
-static mobile_ap_error_code_e __update_wifi_data(MobileAPObject *obj);
+static mobile_ap_error_code_e __update_wifi_data(TetheringObject *obj);
static int __generate_initial_passphrase(char *passphrase_buf)
{
}
}
-mobile_ap_error_code_e _disable_wifi_tethering(MobileAPObject *obj)
+mobile_ap_error_code_e _disable_wifi_tethering(TetheringObject *obj)
{
int ret = MOBILE_AP_ERROR_NONE;
return ret;
}
-static mobile_ap_error_code_e __update_wifi_data(MobileAPObject *obj)
+static mobile_ap_error_code_e __update_wifi_data(TetheringObject *obj)
{
if (obj == NULL) {
ERR("Invalid param\n");
return MOBILE_AP_ERROR_NONE;
}
-gboolean mobileap_enable_wifi_tethering(MobileAPObject *obj, gchar *ssid,
+gboolean tethering_enable_wifi_tethering(TetheringObject *obj, gchar *ssid,
gchar *key, gint hide_mode, DBusGMethodInvocation *context)
{
int ret = MOBILE_AP_ERROR_NONE;
return FALSE;
}
-gboolean mobileap_disable_wifi_tethering(MobileAPObject *obj,
+gboolean tethering_disable_wifi_tethering(TetheringObject *obj,
DBusGMethodInvocation *context)
{
int ret = MOBILE_AP_ERROR_NONE;
return TRUE;
}
-gboolean mobileap_get_wifi_tethering_hide_mode(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_hide_mode(TetheringObject *obj,
DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
return TRUE;
}
-gboolean mobileap_set_wifi_tethering_hide_mode(MobileAPObject *obj,
+gboolean tethering_set_wifi_tethering_hide_mode(TetheringObject *obj,
gint hide_mode, DBusGMethodInvocation *context)
{
int ret = 0;
return TRUE;
}
-gboolean mobileap_get_wifi_tethering_ssid(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_ssid(TetheringObject *obj,
DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
}
-gboolean mobileap_get_wifi_tethering_security_type(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_security_type(TetheringObject *obj,
DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
return TRUE;
}
-gboolean mobileap_set_wifi_tethering_security_type(MobileAPObject *obj,
+gboolean tethering_set_wifi_tethering_security_type(TetheringObject *obj,
gchar *security_type, DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
return TRUE;
}
-gboolean mobileap_get_wifi_tethering_passphrase(MobileAPObject *obj,
+gboolean tethering_get_wifi_tethering_passphrase(TetheringObject *obj,
DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
return TRUE;
}
-gboolean mobileap_set_wifi_tethering_passphrase(MobileAPObject *obj,
+gboolean tethering_set_wifi_tethering_passphrase(TetheringObject *obj,
gchar *passphrase, guint len, DBusGMethodInvocation *context)
{
mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;