00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __HPGS_PLUGIN_H
00035 #define __HPGS_PLUGIN_H
00036
00037 #include<hpgs.h>
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00043 #ifdef HPGS_SHARED
00044 # ifdef WIN32
00045 # ifdef __GNUC__
00046 # ifdef HPGS_BUILD_PLUGIN
00047 # define HPGS_PLUGIN_API __attribute__((dllexport))
00048 # else
00049 # define HPGS_PLUGIN_API __attribute__((dllimport))
00050 # endif
00051 # else
00052 # ifdef HPGS_BUILD_PLUGIN
00053 # define HPGS_PLUGIN_API __declspec(dllexport)
00054 # else
00055 # define HPGS_PLUGIN_API __declspec(dllimport)
00056 # endif
00057 # endif
00058 # else
00059 # define HPGS_PLUGIN_API
00060 # endif
00061 #else
00062 # define HPGS_PLUGIN_API
00063 #endif
00064
00065
00066 HPGS_PLUGIN_API int hpgs_plugin_new_device(hpgs_device **device,
00067 void **asset_ctxt,
00068 hpgs_reader_asset_func_t *page_asset_func,
00069 void **frame_asset_ctxt,
00070 hpgs_reader_asset_func_t *frame_asset_func,
00071 const char *dev_name,
00072 const char *out_fn,
00073 const hpgs_bbox *bb,
00074 double xres, double yres,
00075 hpgs_bool do_rop3,
00076 int argc, const char *argv[]);
00077
00078 HPGS_PLUGIN_API void hpgs_plugin_version(int * major, int *minor);
00079
00080 HPGS_PLUGIN_API void hpgs_plugin_init();
00081 HPGS_PLUGIN_API void hpgs_plugin_cleanup();
00082
00083 #ifdef __cplusplus
00084 }
00085 #endif
00086
00087 #endif