printing/print_test.c

説明を見る。
00001 /*
00002  * Printing backend for the build farm
00003  *
00004  * Copyright (C) Volker Lendecke 2006
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  * 
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #include "includes.h"
00022 #include "printing.h"
00023 
00024 #if defined(DEVELOPER) || defined(ENABLE_BUILD_FARM_HACKS)
00025 
00026 static int test_queue_get(const char *printer_name,
00027                           enum printing_types printing_type,
00028                           char *lpq_command,
00029                           print_queue_struct **q,
00030                           print_status_struct *status)
00031 {
00032         return -1;
00033 }
00034 
00035 static int test_queue_pause(int snum)
00036 {
00037         return -1;
00038 }
00039 
00040 static int test_queue_resume(int snum)
00041 {
00042         return -1;
00043 }
00044 
00045 static int test_job_delete(const char *sharename, const char *lprm_command,
00046                            struct printjob *pjob)
00047 {
00048         return -1;
00049 }
00050 
00051 static int test_job_pause(int snum, struct printjob *pjob)
00052 {
00053         return -1;
00054 }
00055 
00056 static int test_job_resume(int snum, struct printjob *pjob)
00057 {
00058         return -1;
00059 }
00060 
00061 static int test_job_submit(int snum, struct printjob *pjob)
00062 {
00063         return -1;
00064 };
00065 
00066 struct printif test_printif =
00067 {
00068         PRINT_TEST,
00069         test_queue_get,
00070         test_queue_pause,
00071         test_queue_resume,
00072         test_job_delete,
00073         test_job_pause,
00074         test_job_resume,
00075         test_job_submit,
00076 };
00077 
00078 #else
00079  /* this keeps fussy compilers happy */
00080  void print_test_dummy(void);
00081  void print_test_dummy(void) {}
00082 #endif /* DEVELOPER||ENABLE_BUILD_FARM_HACKS */

Sambaに対してSat Aug 29 21:23:14 2009に生成されました。  doxygen 1.4.7