4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Venkatesha Sarpangala <sarpangala.v@samsung.com>, Jayoun Lee <airjany@samsung.com>,
7 * Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
26 #include<glib-object.h>
27 #include <dlog/dlog.h>
45 printf("Unable to create bundle!!!\n");
51 printf("current time: %s\n", ctime(¤t_time));
53 appsvc_set_operation(b, APPSVC_OPERATION_DEFAULT);
54 appsvc_set_pkgname(b, "com.samsung.alarm-test");
57 alarmmgr_add_alarm_appsvc(ALARM_TYPE_VOLATILE, 10, 0, (void *)b, &alarm_id);
59 printf("Alarm Id is %d\n", alarm_id);
61 result = alarmmgr_remove_alarm(alarm_id);
63 if (result == ALARMMGR_RESULT_SUCCESS) {
64 printf("Alarm deletion success!!!\n");
68 printf("Unable to delete alarm!!!\n");
72 int main(int argc, char **argv)
78 mainloop = g_main_loop_new(NULL, FALSE);
82 g_main_loop_run(mainloop);