*/
int CheckOutgoingNotification(OutgoingNotification *pstNotificationInfo)
{
+ _LOG("CheckOutgoingNotification start");
int ret;
// NULL check
*/
int SendNotificationUsingCurl(OutgoingNotification *pstNotificationInfo, bool verbose)
{
+ _LOG("SendNotificationUsingCurl start");
char app_id_str[23];
char app_secret_str[50];
push_badge_option_e badge_option, int badge_number, long time_stamp, int type, int delay,
const char *sender, bool verbose)
{
+ _LOG("SendPushDataToServer start");
int ret;
OutgoingNotification stOutgoingData;
if (CheckOutgoingNotification(&stOutgoingData))
{
+ _LOG("CheckOutgoingNotification failed");
return PUSH_SERVICE_ERROR_INVALID_PARAMETER;
}
}
} else if(CMD_SENDPUSH == pt->cmd) {
_LOG("send push data to server");
+ _LOG("push_service_deregister() function is being called.");
int ret = push_service_get_registration_id(pv->conn, &pv->regid);
if (PUSH_SERVICE_ERROR_NONE != ret) {
_LOG("push_service_get_registration_id() function failed!");
}
if(NOTIFY_NONE == pv->notify_op && CMD_END != pt->cmd) {
+ _LOG("NOTIFY_NONE && !CMD_END\n");
g_main_loop_quit(pv->ml);
}
} break;
*/
void initialize_service(PushT* _pPushT, PushData* _pPushD)
{
+ _LOG("initialize_service start");
int ret = 0;
char *app_id_utc = NULL;
char *app_secret_utc = NULL;
*/
void start_service(char *appid, PushT* _pPushT, PushData* _pPushD, int _op)
{
+ _LOG("start_service start");
int timeout_id = 0;
_pPushD->op = _op;
g_main_loop_unref(_pPushD->ml);
if(timeout_error) {
+ _LOG("timeout error");
start_error = true;
}