void dpkg_arch_save_list(void)
Save the architecture database.
Definition arch.c:310
struct dpkg_arch * dpkg_arch_get(enum dpkg_arch_type type)
Return the struct dpkg_arch corresponding to the architecture type.
Definition arch.c:170
struct dpkg_arch * dpkg_arch_get_list(void)
Return the complete list of architectures.
Definition arch.c:200
const char * dpkg_arch_describe(const struct dpkg_arch *arch)
Return a descriptive architecture name.
Definition arch.c:234
void dpkg_arch_unmark(const struct dpkg_arch *arch)
Unmark a foreign dpkg_arch architecture.
Definition arch.c:265
struct dpkg_arch * dpkg_arch_add(const char *name)
Add a new foreign dpkg_arch architecture.
Definition arch.c:248
void dpkg_arch_reset_list(void)
Reset the list of architectures.
Definition arch.c:212
struct dpkg_arch * dpkg_arch_find(const char *name)
Retrieve the struct dpkg_arch for the given architecture.
Definition arch.c:136
dpkg_arch_type
Definition arch.h:37
void varbuf_add_archqual(struct varbuf *vb, const struct dpkg_arch *arch)
Definition arch.c:219
const char * dpkg_arch_name_is_illegal(const char *name) DPKG_ATTR_NONNULL(1)
Verify if the architecture name is valid.
Definition arch.c:56
void dpkg_arch_load_list(void)
Load the architecture database.
Definition arch.c:285
@ DPKG_ARCH_UNKNOWN
Definition arch.h:45
@ DPKG_ARCH_NONE
Definition arch.h:38
@ DPKG_ARCH_EMPTY
Definition arch.h:39
@ DPKG_ARCH_ALL
Definition arch.h:42
@ DPKG_ARCH_ILLEGAL
Definition arch.h:40
@ DPKG_ARCH_FOREIGN
Definition arch.h:44
@ DPKG_ARCH_NATIVE
Definition arch.h:43
@ DPKG_ARCH_WILDCARD
Definition arch.h:41
#define DPKG_BEGIN_DECLS
Definition macros.h:164
#define DPKG_ATTR_NONNULL(...)
Definition macros.h:124
#define DPKG_END_DECLS
Definition macros.h:165
const char * name
Definition arch.h:50
enum dpkg_arch_type type
Definition arch.h:51
struct dpkg_arch * next
Definition arch.h:49
varbuf_init must be called exactly once before the use of each varbuf (including before any call to v...
Definition varbuf.h:56