remove the _t postfix from type names because POSIX reserves types ending in _t

This commit is contained in:
josch
2014-09-19 23:13:29 +02:00
parent e0ee1e5f8f
commit 4b2563d800
34 changed files with 294 additions and 294 deletions

View File

@@ -24,42 +24,42 @@
#include "../mfapi/folder.h"
#include "../mfapi/mfconn.h"
typedef struct cmd_t cmd_t;
typedef struct mfshell_t mfshell_t;
typedef struct mfcmd mfcmd;
typedef struct mfshell mfshell;
struct cmd_t
struct mfcmd
{
char *name;
char *argstring;
char *help;
int (*handler) (mfshell_t *mfshell, int argc, char **argv);
int (*handler) (mfshell *mfshell, int argc, char **argv);
};
struct mfshell_t
struct mfshell
{
int app_id;
char *app_key;
char *server;
/* REST API tracking */
folder_t *folder_curr;
mffolder *folder_curr;
/* Local tracking */
char *local_working_dir;
/* shell commands */
cmd_t *commands;
mfcmd *commands;
mfconn_t *mfconn;
mfconn *conn;
};
mfshell_t* mfshell_create(int app_id,char *app_key,char *server);
mfshell* mfshell_create(int app_id,char *app_key,char *server);
int mfshell_authenticate_user(mfshell_t *mfshell);
int mfshell_authenticate_user(mfshell *mfshell);
int mfshell_exec(mfshell_t *mfshell, int argc, char **argv);
int mfshell_exec(mfshell *mfshell, int argc, char **argv);
int mfshell_exec_shell_command(mfshell_t *mfshell,char *command);
int mfshell_exec_shell_command(mfshell *mfshell,char *command);
#endif