mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 21:24:28 -08:00
remove the _t postfix from type names because POSIX reserves types ending in _t
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user