123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #include "config.h"
- #include <cjson/cJSON.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "mosquitto_ctrl.h"
- void ctrl_help(void)
- {
- printf("\nExample module\n");
- printf("==============\n");
- printf(" mosquitto_ctrl example help\n");
- }
- int ctrl_main(int argc, char *argv[], struct mosq_ctrl *ctrl)
- {
- UNUSED(argc);
- UNUSED(ctrl);
- if(!strcasecmp(argv[0], "help")){
- ctrl_help();
- return -1;
- }else{
- return MOSQ_ERR_INVAL;
- }
- }
|