[sr-dev] custom database flags
Jan Janak
jan at ryngle.com
Fri Jul 3 18:40:37 CEST 2009
On Fri, Jul 3, 2009 at 6:32 PM, Juha Heinanen<jh at tutpro.com> wrote:
> would it be possible to reserve some of the db flags as custom (private)
> flags that will not be used officially by sr? for example like this:
>
> /*
> * Various database flags shared by modules
> */
> #define SRDB_LOAD_SER (1 << 0) /* The row should be loaded by SER */
> #define SRDB_DISABLED (1 << 1) /* The row is disabled */
> #define SRDB_CANON (1 << 2) /* Canonical entry (domain or uri) */
> #define SRDB_IS_TO (1 << 3) /* The URI can be used in To */
> #define SRDB_IS_FROM (1 << 4) /* The URI can be used in From */
> #define SRDB_FOR_SERWEB (1 << 5) /* Credentials instance can be used by serweb */
> #define SRDB_PENDING (1 << 6)
> #define SRDB_DELETED (1 << 7)
> #define SRDB_CALLER_DELETED (1 << 8) /* Accounting table */
> #define SRDB_CALLEE_DELETED (1 << 9) /* Accounting table */
> #define SRDB_MULTIVALUE (1 << 10) /* Attr_types table */
> #define SRDB_FILL_ON_REG (1 << 11) /* Attr_types table */
> #define SRDB_REQUIRED (1 << 12) /* Attr_types table */
> #define SRDB_DIR (1 << 13) /* Domain_settings table */
> #define CUSTOM_1 (1 << 28) /* Reserved */
> #define CUSTOM_2 (1 << 29) /* Reserved */
> #define CUSTOM_3 (1 << 30) /* Reserved */
> #define CUSTOM_4 (1 << 31) /* Reserved */
>
> i would use them by my management system.
Sure. Please update the header file and add a comment describing which
flags are reserved.
Jan.
More information about the sr-dev
mailing list