Oyranos  git-devel
Oyranos is a full featured Color Management System
Macros | Typedefs | Enumerations | Functions
oyjl_debug.h File Reference

Oyjl API provides a platformindependent C interface for file reading and i/o. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Macros

#define OYJL_NO_BACKTRACE   0x02
 skip oyjlBT() output More...
 
#define OYJL_WRAP   0x1000
 wrap into format specifix code More...
 
#define OYJL_FORCE_COLORTERM   0x01
 skip environment checks and mark More...
 
#define OYJL_FORCE_NO_COLORTERM   0x02
 skip environment checks and do not mark More...
 
#define OYJL_RESET_COLORTERM   0x04
 skip cached checks and init again More...
 

Typedefs

typedef int(* oyjlMessage_f) (int error_code, const void *context, const char *format,...)
 custom message function type More...
 

Enumerations

enum  oyjlTEXTMARK_e { ,
  oyjlNO_MARK = 1, oyjlRED, oyjlGREEN, oyjlBLUE,
  oyjlBOLD, oyjlITALIC, oyjlUNDERLINE
}
 types of terminal color markers More...
 
enum  oyjlMSG_e { ,
  oyjlMSG_INFO = 400, oyjlMSG_CLIENT_CANCELED, oyjlMSG_INSUFFICIENT_DATA, oyjlMSG_ERROR,
  oyjlMSG_PROGRAM_ERROR, oyjlMSG_SECURITY_ALERT
}
 message type More...
 

Functions

char * oyjlBT (int stack_limit OYJL_UNUSED)
 backtrace More...
 
void oyjlDebugVariableSet (int *debug)
 set own debug variable More...
 
const char * oyjlTermColor (oyjlTEXTMARK_e rgb, const char *text)
 text formating for terminals More...
 
const char * oyjlTermColorF (oyjlTEXTMARK_e rgb, const char *format,...)
 variable text formating for terminals More...
 
const char * oyjlTermColorFPtr (oyjlTEXTMARK_e rgb, char **color_text, const char *format,...)
 variable text formating for terminals More...
 
const char * oyjlTermColorFromHtml (const char *text, int flags)
 convert a subset of HTML to terminal colors More...
 
const char * oyjlTermColorToHtml (const char *text, int flags)
 convert internal used terminal colors to HTML More...
 
const char * oyjlTermColorToPlain (const char *text, int flags)
 remove term color marks More...
 
int oyjlTermColorInit (int flags)
 setup formating for terminals More...
 
const char * oyjlPrintTime (int flags, oyjlTEXTMARK_e mark)
 print current date time More...
 
int oyjlMessageFuncSet (oyjlMessage_f message_func)
 set a custom message listener More...
 

Detailed Description

Oyjl API provides a platformindependent C interface for file reading and i/o.

oyjl - Debug helper C API's

Copyright:
2010-2022 (C) Kai-Uwe Behrmann
Author
Kai-Uwe Behrmann ku.b@.nosp@m.gmx..nosp@m.de
License:
MIT http://www.opensource.org/licenses/mit-license.php
Since
2010/09/15