⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 param.h

📁 samba最新软件
💻 H
📖 第 1 页 / 共 2 页
字号:
		  struct loadparm_service *service, const char *type,		  const char *option, bool default_v);struct loadparm_service *lp_add_service(struct loadparm_context *lp_ctx,				     const struct loadparm_service *pservice,				     const char *name);bool lp_add_home(struct loadparm_context *lp_ctx,		 const char *pszHomename,		 struct loadparm_service *default_service,		 const char *user, const char *pszHomedir);bool lp_add_printer(struct loadparm_context *lp_ctx,		    const char *pszPrintername,		    struct loadparm_service *default_service);struct parm_struct *lp_parm_struct(const char *name);void *lp_parm_ptr(struct loadparm_context *lp_ctx,		  struct loadparm_service *service, struct parm_struct *parm);bool lp_file_list_changed(struct loadparm_context *lp_ctx);bool lp_do_global_parameter(struct loadparm_context *lp_ctx,			    const char *pszParmName, const char *pszParmValue);bool lp_do_service_parameter(struct loadparm_context *lp_ctx,			     struct loadparm_service *service,			     const char *pszParmName, const char *pszParmValue);/** * Process a parameter. */bool lp_do_global_parameter_var(struct loadparm_context *lp_ctx,				const char *pszParmName, const char *fmt, ...);bool lp_set_cmdline(struct loadparm_context *lp_ctx, const char *pszParmName,		    const char *pszParmValue);bool lp_set_option(struct loadparm_context *lp_ctx, const char *option);/** * Display the contents of a single services record. */bool lp_dump_a_parameter(struct loadparm_context *lp_ctx,			 struct loadparm_service *service,			 const char *parm_name, FILE * f);/** * Return info about the next service  in a service. snum==-1 gives the globals. * Return NULL when out of parameters. */struct parm_struct *lp_next_parameter(struct loadparm_context *lp_ctx, int snum, int *i, 				      int allparameters);/** * Unload unused services. */void lp_killunused(struct loadparm_context *lp_ctx,		   struct smbsrv_connection *smb,		   bool (*snumused) (struct smbsrv_connection *, int));/** * Initialise the global parameter structure. */struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx);const char *lp_configfile(struct loadparm_context *lp_ctx);bool lp_load_default(struct loadparm_context *lp_ctx);/** * Load the services array from the services file. * * Return True on success, False on failure. */bool lp_load(struct loadparm_context *lp_ctx, const char *filename);/** * Return the max number of services. */int lp_numservices(struct loadparm_context *lp_ctx);/** * Display the contents of the services array in human-readable form. */void lp_dump(struct loadparm_context *lp_ctx, FILE *f, bool show_defaults,	     int maxtoprint);/** * Display the contents of one service in human-readable form. */void lp_dump_one(FILE *f, bool show_defaults, struct loadparm_service *service, struct loadparm_service *sDefault);struct loadparm_service *lp_servicebynum(struct loadparm_context *lp_ctx,					 int snum);struct loadparm_service *lp_service(struct loadparm_context *lp_ctx,				    const char *service_name);/** * A useful volume label function. */const char *volume_label(struct loadparm_service *service, struct loadparm_service *sDefault);/** * If we are PDC then prefer us as DMB */const char *lp_printername(struct loadparm_service *service, struct loadparm_service *sDefault);/** * Return the max print jobs per queue. */int lp_maxprintjobs(struct loadparm_service *service, struct loadparm_service *sDefault);struct smb_iconv_convenience *lp_iconv_convenience(struct loadparm_context *lp_ctx);void lp_smbcli_options(struct loadparm_context *lp_ctx,			 struct smbcli_options *options);/* The following definitions come from param/generic.c  */struct param_section *param_get_section(struct param_context *ctx, const char *name);struct param_opt *param_section_get(struct param_section *section, 				    const char *name);struct param_opt *param_get (struct param_context *ctx, const char *name, const char *section_name);struct param_section *param_add_section(struct param_context *ctx, const char *section_name);struct param_opt *param_get_add(struct param_context *ctx, const char *name, const char *section_name);const char *param_get_string(struct param_context *ctx, const char *param, const char *section);int param_set_string(struct param_context *ctx, const char *param, const char *value, const char *section);const char **param_get_string_list(struct param_context *ctx, const char *param, const char *separator, const char *section);int param_set_string_list(struct param_context *ctx, const char *param, const char **list, const char *section);int param_get_int(struct param_context *ctx, const char *param, int default_v, const char *section);void param_set_int(struct param_context *ctx, const char *param, int value, const char *section);unsigned long param_get_ulong(struct param_context *ctx, const char *param, unsigned long default_v, const char *section);void param_set_ulong(struct param_context *ctx, const char *name, unsigned long value, const char *section);struct param_context *param_init(TALLOC_CTX *mem_ctx);int param_read(struct param_context *ctx, const char *fn);int param_use(struct loadparm_context *lp_ctx, struct param_context *ctx);int param_write(struct param_context *ctx, const char *fn);/* The following definitions come from param/util.c  *//** * @file * @brief Misc utility functions */bool lp_is_mydomain(struct loadparm_context *lp_ctx, 			     const char *domain);/**  see if a string matches either our primary or one of our secondary   netbios aliases. do a case insensitive match*/bool lp_is_myname(struct loadparm_context *lp_ctx, const char *name);/** A useful function for returning a path in the Samba lock directory.**/char *lock_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,			 const char *name);/** * @brief Returns an absolute path to a file in the directory containing the current config file * * @param name File to find, relative to the config file directory. * * @retval Pointer to a talloc'ed string containing the full path. **/char *config_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,			   const char *name);/** * @brief Returns an absolute path to a file in the Samba private directory. * * @param name File to find, relative to PRIVATEDIR. * if name is not relative, then use it as-is * * @retval Pointer to a talloc'ed string containing the full path. **/char *private_path(TALLOC_CTX* mem_ctx, 			    struct loadparm_context *lp_ctx,			    const char *name);/**  return a path in the smbd.tmp directory, where all temporary file  for smbd go. If NULL is passed for name then return the directory   path itself*/char *smbd_tmp_path(TALLOC_CTX *mem_ctx, 			     struct loadparm_context *lp_ctx, 			     const char *name);/** * Obtain the init function from a shared library file */init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path);/** * Obtain list of init functions from the modules in the specified * directory */init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path);/** * Run the specified init functions. * * @return true if all functions ran successfully, false otherwise */bool run_init_functions(init_module_fn *fns);/** * Load the initialization functions from DSO files for a specific subsystem. * * Will return an array of function pointers to initialization functions */init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *subsystem);const char *lp_messaging_path(TALLOC_CTX *mem_ctx, 				       struct loadparm_context *lp_ctx);struct smb_iconv_convenience *smb_iconv_convenience_init_lp(TALLOC_CTX *mem_ctx,							 struct loadparm_context *lp_ctx);/* The following definitions come from lib/version.c  */const char *samba_version_string(void);#endif /* _PARAM_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -