4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hyunjun Ko <zzoon.ko@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
25 #include <arpa/inet.h>
31 #include <sys/types.h>
33 #include "media-thumb-internal.h"
34 #include "media-util-ipc.h"
35 #include "media-server-ipc.h"
37 #ifndef _MEDIA_THUMB_IPC_H_
38 #define _MEDIA_THUMB_IPC_H_
40 #define MAX_PATH_SIZE 4096
42 int _media_thumb_recv_msg(int sock, int header_size, thumbMsg *msg);
43 int _media_thumb_set_buffer(thumbMsg *req_msg, unsigned char **buf, int *buf_size);
45 int _media_thumb_request(int msg_type, const char *origin_path, char *thumb_path, int max_length, uid_t uid);
46 int _media_thumb_request_async(int msg_type, unsigned int request_id, const char *origin_path, thumbUserData *userData, uid_t uid);
48 int _media_thumb_request_raw_data_async(int msg_type,
50 const char *origin_path,
53 thumbRawUserData *userData,
56 int _media_thumb_request_cancel_all(bool isRaw);
58 #endif /*_MEDIA_THUMB_IPC_H_*/