blob: bbcc905fc11f0842a68f285930104775ac04f4bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef H_MODULES
#define H_MODULES
#include "moduleinfo.h"
#include "moduledeps.h"
typedef struct moduleList_s * moduleList;
struct loadedModuleInfo {
char * name;
char ** args;
int weLoaded;
int written;
char * path;
int firstDevNum, lastDevNum;
enum driverMajor major;
enum driverMinor minor;
};
struct extractedModule {
char * path;
char * location;
};
struct moduleList_s {
struct loadedModuleInfo mods[100];
int numModules;
};
int mlReadLoadedList(moduleList * mlp);
int mlLoadModule(const char * module, moduleList modLoaded,
moduleDeps modDeps, moduleInfoSet modInfo,
char ** args);
int mlLoadModuleSet(const char * modNames,
moduleList modLoaded, moduleDeps modDeps,
moduleInfoSet modInfo);
int mlModuleInList(const char * modName, moduleList list);
void writeScsiDisks(moduleList list);
int removeLoadedModule(const char * modName, moduleList modLoaded);
char * getModuleLocation(int version);
#endif
|