Oyranos  0.9.7
Oyranos is a full featured Color Management System
Functions
oyranos_texts.c File Reference

pure text handling functions More...

#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "oyProfiles_s.h"
#include "oyCMMapi4_s.h"
#include "oyCMMapiFilter_s_.h"
#include "oyOptions_s_.h"
#include "oyranos_db.h"
#include "oyranos_cache.h"
#include "oyranos_config_internal.h"
#include "oyranos.h"
#include "oyranos_debug.h"
#include "oyranos_devices.h"
#include "oyranos_helper.h"
#include "oyranos_internal.h"
#include "oyranos_io.h"
#include "oyranos_sentinel.h"
#include "oyranos_xml.h"
#include "oyranos_string.h"

Functions

int oyPoliciesEqual (const char *policyA, const char *policyB)
 compare between two policy texts More...
 
char ** oyGetCMMs (oyCMM_e type, int name_type, uint32_t flags OY_UNUSED, oyAlloc_f allocate_func)
 Get a CMM list as strings. More...
 
char * oyCMMRegistrationToName (const char *registration, oyCMM_e type, int name_type, uint32_t flags OY_UNUSED, oyAlloc_f allocate_func)
 Get a CMM string. More...
 
char * oyCMMNameToRegistration (const char *name, oyCMM_e type, int name_type, uint32_t flags OY_UNUSED, oyAlloc_f allocate_func)
 Get a CMM registration from UI string. More...
 
char * oyGetCMMPattern (oyCMM_e type, uint32_t flags, oyAlloc_f allocate_func)
 Get a default CMM. More...
 
int oySetCMMPattern (oyCMM_e type, uint32_t flags OY_UNUSED, oySCOPE_e scope, const char *pattern)
 set a CMM as default More...
 
uint32_t oyICCProfileSelectionFlagsFromRegistration (const char *registration)
 Get flags for oyProfile_FromFile() and friends. More...
 
int oyGetPersistentStrings (const char *top_key_name)
 cache strings from DB More...
 
char * oyGetPersistentString (const char *key_name, uint32_t flags, oySCOPE_e scope, oyAlloc_f alloc_func)
 get a cached string from DB More...
 
int oySetPersistentString (const char *key_name, oySCOPE_e scope, const char *value, const char *comment)
 set string into DB and cache More...
 

Detailed Description

pure text handling functions

Oyranos is an open source Color Management System

Copyright:
2004-2017 (C) Kai-Uwe Behrmann

Function Documentation

◆ oyPoliciesEqual()

int oyPoliciesEqual ( const char *  policyA,
const char *  policyB 
)

compare between two policy texts

Function oyPoliciesEqual

Do the comparision according to policy typical (oyGROUP_ALL) xml keys.

Returns
-1 in case of an error, 0 for not matching keys, 1 for all keys, which are common in policyA and policyB are equal
Version
Oyranos: 0.1.8
Date
2008/07/23
Since
2008/07/23 (Oyranos: 0.1.8)