OpenDNSSEC-enforcer  2.0.3
Data Fields
cmd_func_block Struct Reference

#include <cmdhandler.h>

Data Fields

const char * cmdname
 
void(* usage )(int sockfd)
 
void(* help )(int sockfd)
 
int(* handles )(const char *cmd, ssize_t n)
 
int(* run )(int sockfd, struct engine_struct *engine, const char *cmd, ssize_t n, db_connection_t *dbconn)
 

Detailed Description

Definition at line 57 of file cmdhandler.h.

Field Documentation

◆ cmdname

const char* cmd_func_block::cmdname

Definition at line 59 of file cmdhandler.h.

◆ handles

int(* cmd_func_block::handles) (const char *cmd, ssize_t n)

Definition at line 67 of file cmdhandler.h.

◆ help

void(* cmd_func_block::help) (int sockfd)

Definition at line 64 of file cmdhandler.h.

◆ run

int(* cmd_func_block::run) (int sockfd, struct engine_struct *engine, const char *cmd, ssize_t n, db_connection_t *dbconn)

Run the handler

Parameters
sockfd,pipeto client,
engine,daemoninformation must not be NULL.
cmd,commandand args for additional parsing.
n,lengthof cmd.
dbconn,connectionto the database.
Returns
0 command executed, all OK -1 Errors parsing commandline / missing params positive error code to return to user.

Definition at line 79 of file cmdhandler.h.

◆ usage

void(* cmd_func_block::usage) (int sockfd)

Definition at line 61 of file cmdhandler.h.


The documentation for this struct was generated from the following file: