4 * Copyright 2012 Samsung Electronics Co., Ltd
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
10 * http://floralicense.org/license/
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.
20 #ifndef __PT_UTILS_H__
21 #define __PT_UTILS_H__
26 #define MAX_MSG_LEN 512
31 COMMAND_BROWSE_SERVICES,
32 COMMAND_BROWSE_ALL_SERVICES,
33 COMMAND_BROWSE_DOMAINS
34 #if defined(HAVE_GDBM) || defined(HAVE_DBM)
38 typedef struct Config {
40 int terminate_on_all_for_now;
41 int terminate_on_cache_exhausted;
49 #if defined(HAVE_GDBM) || defined(HAVE_DBM)
54 /*********** search *****************/
57 * This function let the app clear the list of previous searching
59 * @param[in] list the pointer to the printers list
61 void pt_utils_free_search_list(Eina_List *list);
64 * This function let the app clear the list of previous searching
66 * @param[in] list the pointer to the printers list
68 void pt_utils_free_local_printer_list(Eina_List *list);
70 void pt_utils_free_printing_thd_list(Eina_List *list);
72 /*********** print *****************/
74 char *pt_utils_filename_from_URI(const char *uri);
76 int __standardization(char *name);
78 int pt_utils_get_mfg_mdl(const char *printer, char **mfg, char **mdl);
80 int _pt_filecopy(const char *org_file_path, const char *dest_file_path);
82 void pt_utils_remove_files_in(const char *path);
84 #endif /* __PT_UTILS_H__ */