4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>,
7 * 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 "syspopup_caller.h"
30 printf("[usage] sp_test launch/destroy popup_name..."
31 "(key1,val1,key2,val2,...)\n");
34 int main(int argc, char **argv)
45 if (strcmp(argv[1], "launch") == 0) {
46 if ((argc < 3) || (argc % 2 == 0)) {
52 for (i = 3; i < argc; i = i + 2)
53 bundle_add(b, argv[i], argv[i + 1]);
54 ret = syspopup_launch(argv[2], b);
56 if(ret < 0) return -1;
58 } else if (strcmp(argv[1], "destroy") == 0) {
59 ret = syspopup_destroy_all();
60 if(ret < 0) return -1;