sieve_get_type_of_arg
Last updated March 2020
Name
sieve_get_type_of_arg — Return the type of a Sieve argument
Synopsis
#include "sieve/ecsieve.h"
| enum sieve_arg_type **sieve_get_type_of_arg** (
| arg)
; | |
Description
Return the type of a Sieve argument.
The type of a Sieve argument may not be known at compile time. Use this function to find out the type of argument returned by sieve_parse_args
and its "%", "@" or "*" placeholders. Use this function with caution during compile callbacks in extensions.
- arg
-
The argument list.
This function returns one of the SIEVEARG_*
constants. These constants are:
/* accessors for sieve args */ enum sieve_arg_type { SIEVEARG_BOGUS = 0, SIEVEARG_IS_STRING, SIEVEARG_IS_NUMBER, SIEVEARG_IS_STRINGLIST, SIEVEARG_IS_HASH, SIEVEARG_IS_TAG };
It is legal to call this function in any thread.
See Also
Was this page helpful?