403Webshell
Server IP : 176.32.38.42  /  Your IP : 216.73.216.231
Web Server : LiteSpeed
System : Linux ha006.mymail.zone 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User : s1225329 ( 1835)
PHP Version : 7.4.33
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/2206090/root/usr/include/dovecot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/2206090/root/usr/include/dovecot/var-expand-private.h
#ifndef VAR_EXPAND_PRIVATE_H
#define VAR_EXPAND_PRIVATE_H 1

struct var_expand_context {
	/* current variables */
	const struct var_expand_table *table;
	/* caller provided function table */
	const struct var_expand_func_table *func_table;
	/* caller provided context */
	void *context;
	/* last offset, negative counts from end*/
	int offset;
	/* last width, negative counts from end */
	int width;
	/* last zero padding */
	bool zero_padding:1;
};

/* this can be used to register a *global* function that is
   prepended to function table. These can be used to register some
   special handling for keys.

   you can call var_expand_with_funcs if you need to
   expand something inside here.

   return -1 on error, 0 on unknown variable, 1 on success
*/
typedef int
var_expand_extension_func_t(struct var_expand_context *ctx,
			    const char *key, const char *field,
			    const char **result_r, const char **error_r);

struct var_expand_extension_func_table {
	const char *key;
	var_expand_extension_func_t *func;
};

int var_expand_long(struct var_expand_context *ctx,
		    const void *key_start, size_t key_len,
		    const char **var_r, const char **error_r);

void var_expand_extensions_init(void);
void var_expand_extensions_deinit(void);

/* Functions registered here are placed before in-built functions,
   so you can include your own implementation of something.
   Be careful. Use NULL terminated list.
*/
void var_expand_register_func_array(const struct var_expand_extension_func_table *funcs);
void var_expand_unregister_func_array(const struct var_expand_extension_func_table *funcs);

int var_expand_if(struct var_expand_context *ctx,
		  const char *key, const char *field,
		  const char **result_r, const char **error_r);

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit