param: add extra default parameter to get_parametrics_by_service
[Samba.git] / lib / param / s3_param.h
blobe1d68cf04fb988ea6e25ac8b91a5ac40e3766fff
1 #ifndef __S3_PARAM_H__
2 #define __S3_PARAM_H__
4 struct loadparm_s3_helpers
6 const char * (*get_parametric)(struct loadparm_service *, const char *type,
7 const char *option, const char *def);
8 struct parm_struct * (*get_parm_struct)(const char *param_name);
9 void * (*get_parm_ptr)(struct loadparm_service *service, struct parm_struct *parm);
10 struct loadparm_service * (*get_service)(const char *service_name);
11 struct loadparm_service * (*get_default_loadparm_service)(void);
12 struct loadparm_service * (*get_servicebynum)(int snum);
13 int (*getservicebyname)(const char *, struct loadparm_service *);
14 int (*get_numservices)(void);
15 bool (*load)(const char *filename);
16 bool (*set_cmdline)(const char *pszParmName, const char *pszParmValue);
17 void (*dump)(FILE *f, bool show_defaults, int maxtoprint);
18 char * (*lp_string)(TALLOC_CTX *ctx, const char *in);
19 bool (*lp_string_set)(char **dest, const char *src);
20 bool (*lp_include)(struct loadparm_context*, int, const char *, char **);
21 struct loadparm_global *globals;
24 #endif /* __S3_PARAM_H__ */