2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 #include <sys/socket.h>
37 APP_RUNNING_INFO_RESULT,
44 APP_RUNNING_LIST_UPDATE
47 #define AUL_SOCK_PREFIX "/tmp/alaunch"
48 #define AUL_SOCK_MAXBUFF 65535
49 #define LAUNCHPAD_PID -1
50 #define WRT_LAUNCHPAD_PID -3
51 #define ELOCALLAUNCH_ID 128
53 typedef struct _app_pkt_t {
56 unsigned char data[1];
59 int __create_server_sock(int pid);
60 int __create_client_sock(int pid);
61 int __app_send_raw(int pid, int cmd, unsigned char *kb_data, int datalen);
62 app_pkt_t *__app_recv_raw(int fd, int *clifd, struct ucred *cr);
63 app_pkt_t *__app_send_cmd_with_result(int pid, int cmd);