libxcm
libXcm API Documentation

Descriptive Contents

Introduction | User Tools Documentation | User API Documentation | Programming Tutorial |

Author
Tomas Carnecky, Kai-Uwe Behrmann and others
Since
June 2008
Internet:
http://www.oyranos.org/libxcm
Development:
https://gitlab.com/oyranos/libxcm



Introduction

The libXcm library contains the a reference implementation of the X Color Management specification. The X Color Management specification allows to attach colour regions to X windows to communicate with colour servers.

User Tools Documentation

User API Documentation

Programming Tutorial

Frist you have to put a

#include <X11/Xcm/XcmVersion.h> 

in your source text, in order to use libXcm.

int main( int argc, char ** argv ) {
  int version = XCM_VERSION_NUM;
  return 0;
}

pkg-config –cflags xcm delivers the compiler flags and pkg-config –libs xcm the linker flags.

Then you can put libXcm functions in your code and compile with:

cc `pkg-config --cflags --libs xcm` mycode.c -o myApp 

to link libXcm into your application.