Config type representing an email address. More...
#include "config.h"
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "config_type.h"
#include "address.h"
Go to the source code of this file.
Functions | |
struct Address * | address_new (const char *addr) |
Create an Address from a string. | |
static void | address_destroy (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef) |
Destroy an Address object - Implements ConfigSetType::destroy() -. | |
static int | address_string_set (const struct ConfigSet *cs, void *var, struct ConfigDef *cdef, const char *value, struct Buffer *err) |
Set an Address by string - Implements ConfigSetType::string_set() -. | |
static int | address_string_get (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, struct Buffer *result) |
Get an Address as a string - Implements ConfigSetType::string_get() -. | |
static struct Address * | address_dup (struct Address *addr) |
Create a copy of an Address object. | |
static int | address_native_set (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Set an Address config item by Address object - Implements ConfigSetType::native_set() -. | |
static intptr_t | address_native_get (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, struct Buffer *err) |
Get an Address object from an Address config item - Implements ConfigSetType::native_get() -. | |
static int | address_reset (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, struct Buffer *err) |
Reset an Address to its initial value - Implements ConfigSetType::reset() -. | |
const struct Address * | cs_subset_address (const struct ConfigSubset *sub, const char *name) |
Get an Address config item by name. | |
Variables | |
const struct ConfigSetType | CstAddress |
Config type representing an Email Address. | |
Config type representing an email address.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file config_type.c.
struct Address * address_new | ( | const char * | addr | ) |
Create an Address from a string.
addr | Email address to parse |
ptr | New Address object |
Definition at line 52 of file config_type.c.
Create a copy of an Address object.
addr | Address to duplicate |
ptr | New Address object |
Definition at line 164 of file config_type.c.
const struct Address * cs_subset_address | ( | const struct ConfigSubset * | sub, |
const char * | name | ||
) |
Get an Address config item by name.
sub | Config Subset |
name | Name of config item |
ptr | Address |
NULL | Empty address |
Definition at line 272 of file config_type.c.
const struct ConfigSetType CstAddress |
Config type representing an Email Address.
Definition at line 252 of file config_type.c.