1. Changed license copyright year
[apps/core/preloaded/print-service.git] / include / pt_ppd.h
1 /*
2 *       Printservice
3 *
4 * Copyright 2012-2013  Samsung Electronics Co., Ltd
5
6 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 #ifndef __PT_PPD_H__
21 #define __PT_PPD_H__
22
23 #define MAX_PATH_SIZE            512
24 #define MAX_COMMAND_SIZE         128*128
25 #define MANUFACTURER_NUM         3
26 #define PPD_DIR                         "/opt/etc/cups/ppd"
27
28 /**
29  *  This function let the app get ppd file for the specified printer
30  *  @return    If success, return PT_ERR_NONE, else return PT_ERR_FAIL
31  *  @param[in] ppd the pointer to the printer's ppd path
32  *  @param[in] printer the printer entry
33  */
34 int pt_get_printer_ppd(pt_printer_mgr_t *printer);
35 ppd_size_t *pt_utils_paper_size_pts(const char *name);
36
37 #endif /*__PT_PPD_H__*/
38