add function to execute raw commands via argc and argv

This commit is contained in:
josch
2014-09-17 00:11:09 +02:00
parent c57ccd6df1
commit b25e4ad7d8
3 changed files with 20 additions and 10 deletions

View File

@@ -84,7 +84,8 @@ struct _mfshell_s
char* (*create_signed_get) (_mfshell_t*,int,char*,char*,...);
char* (*create_signed_post) (_mfshell_t*,int,char*,char*,...);
int (*exec) (_mfshell_t*,char*);
int (*exec) (_mfshell_t*, int argc, char **argv);
int (*exec_string) (_mfshell_t*,char*);
/* REST API calls */
int (*get_session_token) (_mfshell_t*);
@@ -120,6 +121,9 @@ _create_call_signature(_mfshell_t *mfshell,char *url,char *args);
char*
_create_signed_get(_mfshell_t *mfshell,int ssl,char *api,char *fmt,...);
int
_execute(_mfshell_t *mfshell, int argc, char **argv);
int
_execute_shell_command(_mfshell_t *mfshell,char *command);