Oyranos Color Management System API - Version 0.9.6
Functions
oyObject_s.c File Reference
#include "oyranos_object_internal.h"
#include "oyObject_s.h"
#include "oyObject_s_.h"
#include "oyName_s_.h"
#include "oyranos_types.h"

Functions

oyObject_s oyObject_New (void)
 object management
oyObject_s oyObject_NewWithAllocators (oyAlloc_f allocateFunc, oyDeAlloc_f deallocateFunc)
 object management
oyObject_s oyObject_NewFrom (oyObject_s object)
 object management
oyObject_s oyObject_Copy (oyObject_s object)
 object management
int oyObject_Release (oyObject_s *obj)
 release an Oyranos object
oyObject_s oyObject_SetParent (oyObject_s o, oyOBJECT_e type, oyPointer parent)
 custom object memory managersNormally a sub object should not know about its parent structure, but follow a hierarchical design. We break this here to allow the observation of all objects including the parents structures as a feature in oyObject_s. Then we just need a list of all oyObject_s objects and have an overview. This facility is intented to work even without debugging tools.
int oyObject_SetName (oyObject_s object, const char *text, oyNAME_e type)
 object naming
int oyObject_SetNames (oyObject_s object, const char *nick, const char *name, const char *description)
 object naming
int oyObject_CopyNames (oyObject_s dest, oyObject_s src)
 object naming
const oyChar * oyObject_GetName (const oyObject_s obj, oyNAME_e type)
 object get names
int oyObject_Lock (oyObject_s object, const char *marker, int line)
 Lock a object.
int oyObject_UnLock (oyObject_s object, const char *marker, int line)
 Unlock a object.
int oyObject_UnSetLocking (oyObject_s object, const char *marker, int line)
 remove a object's lock pointer
int oyObject_GetRefCount (oyObject_s obj)
 get the identification number of a object
int oyObject_UnRef (oyObject_s obj)
 decrease the ref counter and return the above zero ref value
OYAPI oyAlloc_f OYEXPORT oyObject_GetAlloc (oyObject_s object)
 get objects allocator
OYAPI oyDeAlloc_f OYEXPORT oyObject_GetDeAlloc (oyObject_s object)
 get objects deallocator

Detailed Description

[Template file inheritance graph] +– oyObject_s.template.c

Oyranos is an open source Color Management System

Copyright:
2004-2016 (C) Kai-Uwe Behrmann
Author
Kai-Uwe Behrmann ku.b@.nosp@m.gmx..nosp@m.de
License:
new BSD - see: http://www.opensource.org/licenses/BSD-3-Clause