* Ini config sections
**********************************************************************************************/
-#define INISEC_GLOBAL "General"
+#define INISEC_GLOBAL "Global"
#define INISEC_AFP "AFP"
#define INISEC_CNID "CNID"
struct DSI;
#define AFPOBJ_TMPSIZ (MAXPATHLEN)
-/* a couple of these options could get stuck in unions to save
- * space. */
struct afp_volume_name {
time_t mtime;
- char *name;
- char *full_name;
int loaded;
};
};
typedef struct AFPObj {
- int argc;
- char **argv;
- int statuslen;
- char status[1400];
+ const char *cmdlineconfigfile;
+ int cmdlineflags;
const void *signature;
struct DSI *dsi;
struct afp_options options;
- const dictionary *iniconfig;
+ dictionary *iniconfig;
char username[MAXUSERLEN];
/* to prevent confusion, only use these in afp_* calls */
char oldtmp[AFPOBJ_TMPSIZ + 1], newtmp[AFPOBJ_TMPSIZ + 1];
extern int get_afp_errno (const int param);
extern void afp_options_init (struct afp_options *);
-extern int afp_options_parse_cmdline (int ac, char **av);
+extern void afp_options_parse_cmdline(AFPObj *obj, int ac, char **av);
extern int afp_config_parse(AFPObj *AFPObj);
extern void afp_options_free(struct afp_options *);
extern void setmessage (const char *);