packaging: removed '-Wl,as-needed' for build error.
[apps/core/preloaded/print-service.git] / include / pt_ppd.h
1 /*
2 *       Printservice
3 *
4 * Copyright (c) 2012-2014 Samsung Electronics Co., Ltd.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20 /* For multi-user support */
21 #include <tzplatform_config.h>
22
23 #ifndef __PT_PPD_H__
24 #define __PT_PPD_H__
25
26 #define MAX_PATH_SIZE            512
27 #define MAX_COMMAND_SIZE         128*128
28 #define MANUFACTURER_NUM         3
29 #define PPD_DIR                          tzplatform_mkpath3(TZ_SYS_ETC, "cups", "ppd")
30
31 /**
32  *  This function let the app get ppd file for the specified printer
33  *  @return    If success, return PT_ERR_NONE, else return PT_ERR_FAIL
34  *  @param[in] ppd the pointer to the printer's ppd path
35  *  @param[in] printer the printer entry
36  */
37 int pt_get_printer_ppd(pt_printer_mgr_t *printer);
38 ppd_size_t *pt_utils_paper_size_pts(const char *name);
39
40 #endif /*__PT_PPD_H__*/
41