}
path = args;
- if (e_connman_manager_agent_register(path, NULL, NULL))
+ if (e_connman_manager_agent_register
+ (path, _method_success_check, "manager_register_agent"))
printf(":::Registering agent %s...\n", path);
else
fprintf(stderr, "ERROR: can't register agent %s\n", path);
}
path = args;
- if (e_connman_manager_agent_unregister(path, NULL, NULL))
+ if (e_connman_manager_agent_unregister
+ (path, _method_success_check, "manager_unregister_agent"))
printf(":::Unregistering agent %s...\n", path);
else
fprintf(stderr, "ERROR: can't unregister agent %s\n", path);
}
_tok(args);
offline = !!atol(args);
- if (e_connman_manager_offline_mode_set(offline, NULL, NULL))
+ if (e_connman_manager_offline_mode_set
+ (offline, _method_success_check, "manager_set_offline_mode"))
+
printf(":::Manager Offline Mode set to %hhu\n", offline);
else
fputs("ERROR: can't set manager offline mode\n", stderr);
if (!args)
args = "";
- if (e_connman_manager_request_scan(args, NULL, NULL))
+ if (e_connman_manager_request_scan
+ (args, _method_success_check, "manager_request_scan"))
printf(":::Manager Request Scan for %s\n", args[0] ? args : "<all>");
else
fputs("ERROR: can't request scan on manager\n", stderr);
}
_tok(args);
- if (e_connman_manager_technology_enable(args, NULL, NULL))
+ if (e_connman_manager_technology_enable
+ (args, _method_success_check, "manager_technology_enable"))
printf(":::Manager Enable Technology %s\n", args);
else
fputs("ERROR: can't enable technology on manager\n", stderr);
}
_tok(args);
- if (e_connman_manager_technology_disable(args, NULL, NULL))
+ if (e_connman_manager_technology_disable
+ (args, _method_success_check, "manager_technology_disable"))
printf(":::Manager Disable Technology %s\n", args);
else
fputs("ERROR: can't disable technology on manager\n", stderr);
_tok(args);
e = e_connman_profile_get(args);
- if (e_connman_manager_profile_remove(e, NULL, NULL))
+ if (e_connman_manager_profile_remove
+ (e, _method_success_check, "manager_profile_remove"))
printf(":::Manager Remove Profile %s\n", args);
else
fputs("ERROR: can't remove profile from manager\n", stderr);
_tok(args);
e = e_connman_profile_get(args);
- if (e_connman_manager_profile_active_set(e, NULL, NULL))
+ if (e_connman_manager_profile_active_set
+ (e, _method_success_check, "manager_profile_set_active"))
printf(":::Manager Active Profile set to %s\n", args);
else
fputs("ERROR: can't set active profile\n", stderr);
path = args;
e = e_connman_device_get(path);
- if (e_connman_device_propose_scan(e, NULL, NULL))
+ if (e_connman_device_propose_scan
+ (e, _method_success_check, "device_propose_scan"))
printf(":::Proposing scan %s...\n", path);
else
fputs("ERROR: can't propose scan\n", stderr);
powered = !!atol(next_args);
e = e_connman_device_get(device_path);
- if (e_connman_device_powered_set(e, powered, NULL, NULL))
+ if (e_connman_device_powered_set
+ (e, powered, _method_success_check, "device_set_powered"))
printf(":::Device %s powered set to %hhu\n", device_path, powered);
else
fputs("ERROR: can't set device powered\n", stderr);
}
e = e_connman_device_get(device_path);
- if (e_connman_device_scan_interval_set(e, scan_interval, NULL, NULL))
+ if (e_connman_device_scan_interval_set
+ (e, scan_interval, _method_success_check, "device_set_scan_interval"))
printf(":::Device %s scan interval set to %hu\n", device_path, scan_interval);
else
fputs("ERROR: can't set device scan interval\n", stderr);
_tok(next_args);
e = e_connman_profile_get(path);
- if (e_connman_profile_name_set(e, next_args, NULL, NULL))
+ if (e_connman_profile_name_set
+ (e, next_args, _method_success_check, "profile_set_name"))
printf(":::Profile %s Name set to %s\n", path, next_args);
else
fputs("ERROR: can't set profile name\n", stderr);
offline = !!atol(next_args);
e = e_connman_profile_get(path);
- if (e_connman_profile_offline_mode_set(e, offline, NULL, NULL))
+ if (e_connman_profile_offline_mode_set
+ (e, offline, _method_success_check, "profile_set_offline_mode"))
printf(":::Profile %s Offline Mode set to %hhu\n", path, offline);
else
fputs("ERROR: can't set profile offline mode\n", stderr);
path = args;
e = e_connman_service_get(path);
- if (e_connman_service_connect(e, NULL, NULL))
+ if (e_connman_service_connect
+ (e, _method_success_check, "service_connect"))
printf(":::Connecting to Service %s...\n", path);
else
fputs("ERROR: can't connect to service\n", stderr);
path = args;
e = e_connman_service_get(path);
- if (e_connman_service_disconnect(e, NULL, NULL))
+ if (e_connman_service_disconnect
+ (e, _method_success_check, "service_disconnect"))
printf(":::Disconnecting Service %s...\n", path);
else
fputs("ERROR: can't disconnect service\n", stderr);
path = args;
e = e_connman_service_get(path);
- if (e_connman_service_remove(e, NULL, NULL))
+ if (e_connman_service_remove
+ (e, _method_success_check, "service_remove"))
printf(":::Removing Service %s...\n", path);
else
fputs("ERROR: can't remove service\n", stderr);
_tok(path);
e = e_connman_service_get(service_path);
- if (e_connman_service_move_before(e, path, NULL, NULL))
+ if (e_connman_service_move_before
+ (e, path, _method_success_check, "service_move_before"))
printf(":::Moving before %s...\n", path);
else
fputs("ERROR: can't move before\n", stderr);
_tok(path);
e = e_connman_service_get(service_path);
- if (e_connman_service_move_after(e, path, NULL, NULL))
+ if (e_connman_service_move_after
+ (e, path, _method_success_check, "service_move_after"))
printf(":::Moving after %s...\n", path);
else
fputs("ERROR: can't move after\n", stderr);
_tok(passphrase);
e = e_connman_service_get(path);
- if (e_connman_service_passphrase_set(e, passphrase, NULL, NULL))
+ if (e_connman_service_passphrase_set
+ (e, passphrase, _method_success_check, "service_set_passphrase"))
printf(":::Service %s passphrase set to \"%s\"\n", path, passphrase);
else
fputs("ERROR: can't set service passphrase\n", stderr);
auto_connect = !!atol(next_args);
e = e_connman_service_get(path);
- if (e_connman_service_auto_connect_set(e, auto_connect, NULL, NULL))
+ if (e_connman_service_auto_connect_set
+ (e, auto_connect, _method_success_check, "service_set_auto_connect"))
printf(":::Service %s auto connect set to %d\n", path, auto_connect);
else
fputs("ERROR: can't set service auto connect\n", stderr);
_tok(apn);
e = e_connman_service_get(path);
- if (e_connman_service_apn_set(e, apn, NULL, NULL))
+ if (e_connman_service_apn_set
+ (e, apn, _method_success_check, "service_set_apn"))
printf(":::Service %s APN set to \"%s\"\n", path, apn);
else
fputs("ERROR: can't set service APN\n", stderr);