mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(profile): update 3.3.5a profile
This commit is contained in:
parent
9053d61b6b
commit
e1bab2b375
186 changed files with 1204 additions and 43942 deletions
78
profile/3.3.5a-windows-386/include/storm/cmd.h
Normal file
78
profile/3.3.5a-windows-386/include/storm/cmd.h
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
#ifndef STORM_CMD_H
|
||||
#define STORM_CMD_H
|
||||
|
||||
DECLARE_STRUCT(ARGLIST);
|
||||
DECLARE_STRUCT(CMDPARAMS);
|
||||
DECLARE_STRUCT(CMDDEF);
|
||||
STORM_TS_LIST(CMDDEF);
|
||||
DECLARE_STRUCT(CMDERROR);
|
||||
DECLARE_STRUCT(PROCESSING);
|
||||
|
||||
#include "storm/list.h"
|
||||
|
||||
// Callback types
|
||||
typedef int32_t (*CMDEXTRACALLBACK)(const char*);
|
||||
typedef int32_t (*CMDERRORCALLBACK)(CMDERROR*);
|
||||
typedef int32_t (*CMDPARAMSCALLBACK)(CMDPARAMS*, const char*);
|
||||
|
||||
// Details a command line argument
|
||||
// class ARGLIST
|
||||
struct ARGLIST {
|
||||
uint32_t flags;
|
||||
uint32_t id;
|
||||
const char* name;
|
||||
CMDPARAMSCALLBACK callback;
|
||||
};
|
||||
|
||||
// Parameters passed to argument callback
|
||||
// class CMDPARAMS
|
||||
struct CMDPARAMS {
|
||||
uint32_t flags;
|
||||
uint32_t id;
|
||||
const char* name;
|
||||
void* variable;
|
||||
uint32_t setvalue;
|
||||
uint32_t setmask;
|
||||
union {
|
||||
int32_t boolvalue;
|
||||
int32_t signedvalue;
|
||||
uint32_t unsignedvalue;
|
||||
const char* stringvalue;
|
||||
};
|
||||
};
|
||||
|
||||
// Command definitions
|
||||
// class CMDDEF : public TSLinkedNode<CMDDEF>
|
||||
struct CMDDEF {
|
||||
TSLinkedNode_CMDDEF b_base;
|
||||
uint32_t flags;
|
||||
uint32_t id;
|
||||
char name[16];
|
||||
int32_t namelength;
|
||||
uint32_t setvalue;
|
||||
uint32_t setmask;
|
||||
void* variableptr;
|
||||
uint32_t variablebytes;
|
||||
CMDPARAMSCALLBACK callback;
|
||||
int32_t found;
|
||||
union {
|
||||
uint32_t currvalue;
|
||||
char* currvaluestr;
|
||||
};
|
||||
};
|
||||
|
||||
// class CMDERROR
|
||||
struct CMDERROR {
|
||||
uint32_t errorcode;
|
||||
const char* itemstr;
|
||||
const char* errorstr;
|
||||
};
|
||||
|
||||
// class PROCESSING
|
||||
struct PROCESSING {
|
||||
CMDDEF* ptr;
|
||||
char name[16];
|
||||
int32_t namelength;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue