18 #ifndef OPENCBM_PLUGIN_INSTALL_H
19 #define OPENCBM_PLUGIN_INSTALL_H
46 typedef int CBMAPIDECL opencbm_plugin_install_getopt_long_callback_t(
int Argc,
char *
const Argv[],
const char *Optstring,
const struct option *Longopts);
66 struct opencbm_plugin_install_neededfiles_s opencbm_plugin_install_neededfiles_t;
70 struct cbm_install_parameter_plugin_s
72 struct cbm_install_parameter_plugin_s *Next;
76 opencbm_plugin_install_neededfiles_t * NeededFiles;
83 struct cbm_install_parameter_s
92 BOOL ExecuteParameterGiven;
113 BOOL OutputDebuggingBuffer;
116 BOOL DebugFlagsDriverWereGiven;
119 BOOL DebugFlagsDllWereGiven;
122 BOOL DebugFlagsInstallWereGiven;
125 ULONG DebugFlagsDriver;
131 ULONG DebugFlagsInstall;
134 osversion_t OsVersion;
148 BOOL NoExplicitPluginGiven;
151 char * DefaultAdapter;
153 } opencbm_install_parameter_t;
164 typedef struct CbmPluginInstallProcessCommandlineData_s {
173 opencbm_plugin_install_getopt_long_callback_t * GetoptLongCallback;
174 opencbm_install_parameter_t * InstallParameter;
194 typedef BOOL
CBMAPIDECL opencbm_plugin_install_do_install_t(
void * OptionMemory);
202 typedef BOOL
CBMAPIDECL opencbm_plugin_install_do_uninstall_t(
void * OptionMemory);
210 enum opencbm_plugin_install_location_e
217 } opencbm_plugin_install_location_t;
224 struct opencbm_plugin_install_neededfiles_s
226 opencbm_plugin_install_location_t FileLocation;
227 const char Filename[100];
228 const char * FileLocationString;
231 } opencbm_plugin_install_neededfiles_t;
245 #define INDEX_DEFAULT_FILENAME_LOCAL 0
246 #define INDEX_DEFAULT_FILENAME_USERDIR 1
247 #define INDEX_DEFAULT_FILENAME_WINDIR 2
259 typedef BOOL
CBMAPIDECL opencbm_plugin_install_generic_t(
const char * DefaultPluginname,
unsigned int DefaultLocation);
282 typedef BOOL
CBMAPIDECL opencbm_plugin_get_all_plugin_names_callback_t(opencbm_install_parameter_t * InstallParameter,
const char * Pluginname);
288 typedef struct opencbm_plugin_get_all_plugin_names_context_s {
289 opencbm_plugin_get_all_plugin_names_callback_t * Callback;
290 opencbm_install_parameter_t * InstallParameter;
291 } opencbm_plugin_get_all_plugin_names_context_t;
299 typedef BOOL
CBMAPIDECL opencbm_plugin_get_all_plugin_names_t(opencbm_plugin_get_all_plugin_names_context_t * Callback);
305 typedef int CBMAPIDECL opencbm_plugin_self_init_plugin_t(
void);
311 typedef int CBMAPIDECL opencbm_plugin_self_uninit_plugin_t(
void);
315 #endif // #ifndef OPENCBM_PLUGIN_INSTALL_H
struct cbm_install_parameter_plugin_s cbm_install_parameter_plugin_t
struct CbmPluginInstallProcessCommandlineData_s CbmPluginInstallProcessCommandlineData_t