Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
mcr_IRegistry Struct Reference

#include <iregistry.h>

Public Attributes

void(* deinit )(struct mcr_IRegistry *)
 Notify this object is to be destroyed.
 
size_t(* id )(const struct mcr_IRegistry *, struct mcr_Interface *)
 
struct mcr_Interface *(* from_id )(const struct mcr_IRegistry *, size_t id)
 
const char *(* name )(const struct mcr_IRegistry *, struct mcr_Interface *)
 
struct mcr_Interface *(* from_name )(const struct mcr_IRegistry *, const char *name)
 
size_t(* set_name )(struct mcr_IRegistry *, struct mcr_Interface *, const char *name)
 
int(* add_names )(struct mcr_IRegistry *, struct mcr_Interface *, const char *const *addNames, size_t addNamesCount)
 Add names that will map to an interface.
 
void(* remove )(struct mcr_IRegistry *, struct mcr_Interface *)
 Remove from id list and all mapped name strings.
 
void(* remove_name )(struct mcr_IRegistry *, const char *removeName)
 Remove the name without removing the interface.
 
size_t(* count )(const struct mcr_IRegistry *)
 Get the total number of interfaces registered.
 
void(* trim )(struct mcr_IRegistry *)
 Minimize allocation.
 
void(* clear )(struct mcr_IRegistry *)
 

Detailed Description

For a given category of interfaces, register an id and name for each interface definition.

Definition at line 36 of file iregistry.h.

Member Data Documentation

§ clear

void(* mcr_IRegistry::clear) (struct mcr_IRegistry *)

Remove all registered interfaces.

Definition at line 65 of file iregistry.h.

§ set_name

size_t(* mcr_IRegistry::set_name) (struct mcr_IRegistry *, struct mcr_Interface *, const char *name)

Register an interface as the given name.

If the interface is already registered, the previously mapped name will not be removed.

Returns
retind Id of registered interface.

Definition at line 51 of file iregistry.h.


The documentation for this struct was generated from the following file: