Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3155467
options.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
options.h
View Options
#ifndef _XVM_OPTIONS_H
#define _XVM_OPTIONS_H
typedef enum {
F_FOREGROUND = 0x1,
F_NOCCS = 0x2,
F_ERR = 0x4,
F_HELP = 0x8,
F_USE_UUID = 0x10,
F_VERSION = 0x20,
F_CCSERR = 0x40,
F_CCSFAIL = 0x80,
F_NOCLUSTER = 0x100,
F_DEBUG = 0x200
} arg_flags_t;
typedef struct {
char *addr;
char *domain;
char *key_file;
char *uri;
fence_cmd_t op;
fence_hash_t hash;
fence_auth_type_t auth;
int port;
unsigned int ifindex;
int family;
int timeout;
int retr_time;
arg_flags_t flags;
int debug;
int ttl;
} fence_xvm_args_t;
/* Private structure for commandline / stdin fencing args */
struct arg_info {
char opt;
char *opt_desc;
char *stdin_opt;
char *desc;
void (*assign)(fence_xvm_args_t *, struct arg_info *, char *);
};
/* Get options */
void args_init(fence_xvm_args_t *args);
void args_finalize(fence_xvm_args_t *args);
void args_get_getopt(int argc, char **argv, char *optstr,
fence_xvm_args_t *args);
void args_get_stdin(char *optstr, fence_xvm_args_t *args);
void args_get_ccs(char *optstr, fence_xvm_args_t *args);
void args_usage(char *progname, char *optstr, int print_stdin);
void args_print(fence_xvm_args_t *args);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Feb 26, 10:51 PM (8 h, 50 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1465846
Default Alt Text
options.h (1 KB)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment