Oyranos  0.9.7
Oyranos is a full featured Color Management System
Macros | Functions | Variables
oyranos_cmm_elDB.c File Reference

Elektra DB module for Oyranos. More...

#include "oyCMM_s.h"
#include "oyCMMapi10_s_.h"
#include "oyranos_cmm.h"
#include "oyranos_config.h"
#include "oyranos_i18n.h"
#include "oyranos_string.h"
#include <errno.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <kdb.h>

Macros

#define CMM_NICK   "elDB"
 

Functions

char ** elDB_getKeyNamesOneLevel (oyDB_s *db, const char *key_name, int *n)
 The function returns keys found just one level under the arguments one. More...
 
int elDBMessageFuncSet (oyMessage_f elDB_msg_func)
 
int elDBInit (oyStruct_s *filter OY_UNUSED)
 API requirement. More...
 
int elDBMOptions_Handle (oyOptions_s *options OY_UNUSED, const char *command, oyOptions_s **result OY_UNUSED)
 
const char * elDBInfoGetTextDBC (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 
const char * elDBInfoGetText (const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
 

Variables

oyCMMapi10_s_ elDB_api10_cmm
 elDB oyCMMapi10_s implementation More...
 
oyCMM_s elDB_cmm_module
 elDB module infos More...
 

Detailed Description

Elektra DB module for Oyranos.

Oyranos is an open source Color Management System

Copyright:
2016 (C) Kai-Uwe Behrmann

Macro Definition Documentation

◆ CMM_NICK

#define CMM_NICK   "elDB"

The module provides a drop in replacement for the configuration DB access functions using Elektra.

Function Documentation

◆ elDB_getKeyNamesOneLevel()

char ** elDB_getKeyNamesOneLevel ( oyDB_s *  db,
const char *  key_name,
int *  n 
)

The function returns keys found just one level under the arguments one.

Cut after one level behind key_parent_name.

◆ elDBInfoGetText()

const char* elDBInfoGetText ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.6
Date
2016/10/23
Since
2016/05/01 (Oyranos: 0.9.6)

◆ elDBInfoGetTextDBC()

const char* elDBInfoGetTextDBC ( const char *  select,
oyNAME_e  type,
oyStruct_s *context  OY_UNUSED 
)

This function implements oyCMMinfoGetText_f.

Version
Oyranos: 0.9.6
Date
2016/10/23
Since
2016/05/01 (Oyranos: 0.9.6)

◆ elDBInit()

int elDBInit ( oyStruct_s *filter  OY_UNUSED)

API requirement.

Function elDBInit

Version
Oyranos: 0.9.6
Date
2016/04/29
Since
2016/04/29 (Oyranos: 0.9.6)

◆ elDBMessageFuncSet()

int elDBMessageFuncSet ( oyMessage_f  message_func)

Function elDBMessageFuncSet

Version
Oyranos: 0.9.6
Since
2016/05/01 (Oyranos: 0.9.6)
Date
2016/05/01

◆ elDBMOptions_Handle()

int elDBMOptions_Handle ( oyOptions_s *options  OY_UNUSED,
const char *  command,
oyOptions_s **result  OY_UNUSED 
)

This function implements oyMOptions_Handle_f.

Version
Oyranos: 0.9.6
Date
2016/10/23
Since
2016/05/01 (Oyranos: 0.9.6)

Variable Documentation

◆ elDB_api10_cmm

oyCMMapi10_s_ elDB_api10_cmm
Initial value:
= {
0,0,0,
(oyCMMapi_s*) NULL,
"db_handler._" CMM_NICK,
CMM_VERSION,
CMM_API_VERSION,
0,
0,
0,
(char**)elDB_texts_profile_create,
}
Definition: oyranos_object.h:175
int elDBInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_elDB.c:776
#define OY_TYPE_STD
Definition: oyranos_definitions.h:141
#define OY_DOMAIN_INTERNAL
Definition: oyranos_definitions.h:139
const char * elDBInfoGetTextDBC(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_elDB.c:851
#define CMM_NICK
Definition: oyranos_cmm_elDB.c:37
the basic API interface
Definition: oyCMMapi_s.h:88
#define OY_SLASH
Definition: oyranos_definitions.h:129
int elDBMOptions_Handle(oyOptions_s *options OY_UNUSED, const char *command, oyOptions_s **result OY_UNUSED)
Definition: oyranos_cmm_elDB.c:822
int elDBMessageFuncSet(oyMessage_f elDB_msg_func)
Definition: oyranos_cmm_elDB.c:791
#define OY_TOP_SHARED
Definition: oyranos_definitions.h:133

elDB oyCMMapi10_s implementation

elDB_api10_cmm handlers for OpenICC DB

Version
Oyranos: 0.9.6
Date
2016/10/23
Since
2016/05/01 (Oyranos: 0.9.6)

◆ elDB_cmm_module

oyCMM_s elDB_cmm_module
Initial value:
= {
0,0,0,
"0.6",
(char**)elDB_texts,
&elDB_icon,
}
int elDBInit(oyStruct_s *filter OY_UNUSED)
API requirement.
Definition: oyranos_cmm_elDB.c:776
const char * elDBInfoGetText(const char *select, oyNAME_e type, oyStruct_s *context OY_UNUSED)
Definition: oyranos_cmm_elDB.c:926
oyCMMapi10_s_ elDB_api10_cmm
elDB oyCMMapi10_s implementation
Definition: oyranos_cmm_elDB.c:892
#define CMM_NICK
Definition: oyranos_cmm_elDB.c:37
the basic API interface
Definition: oyCMMapi_s.h:88
#define OYRANOS_VERSION
Definition: oyranos_version.h:11
Definition: oyranos_object.h:161

elDB module infos

elDB_cmm_module

Version
Oyranos: 0.9.6
Date
2016/10/23
Since
2016/05/01 (Oyranos: 0.9.6)