Oyranos  git-devel
Oyranos is a full featured Color Management System
Functions
oyStruct_s.c File Reference
#include "oyStruct_s.h"
#include "oyObject_s.h"
#include "oyranos_object_internal.h"
#include "oyranos_generic.h"
#include "oyCMMapi9_s.h"
#include "oyCMMapiFilters_s.h"
#include "oyranos_types.h"
#include "oyranos_cmm.h"

Functions

oyAlloc_f oyStruct_GetAllocator (oyStruct_s *obj)
 get the memory allocator of a object More...
 
oyDeAlloc_f oyStruct_GetDeAllocator (oyStruct_s *obj)
 get the memory allocator of a object More...
 
OYAPI oyPointer OYEXPORT oyStruct_Allocate (oyStruct_s *st, size_t size)
 let a object allocate some memory More...
 
OYAPI void OYEXPORT oyStruct_DeAllocate (oyStruct_s *st, oyPointer ptr)
 let a object deallocate some memory More...
 
void oyThreadLockingSet (oyStruct_LockCreate_f createLockFunc, oyLockRelease_f releaseLockFunc, oyLock_f lockFunc, oyUnLock_f unlockFunc)
 set locking functions for threaded applications More...
 
void oyThreadLockingReset ()
 unset locking functions for threaded applications More...
 
int oyThreadLockingReady (void)
 tell if thread locking is ready More...
 
int oyStruct_CheckType (oyStruct_s *obj, oyOBJECT_e type)
 check if the object is a class or is inherited of a class More...
 

Detailed Description

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

Oyranos is an open source Color Management System

Copyright:
2004-2022 (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

Function Documentation

◆ oyStruct_Allocate()

OYAPI oyPointer OYEXPORT oyStruct_Allocate ( oyStruct_s st,
size_t  size 
)

let a object allocate some memory

Function oyStruct_Allocate

Version
Oyranos: 0.1.10
Since
2008/12/00 (Oyranos: 0.1.10)
Date
2008/12/00

◆ oyStruct_CheckType()

int oyStruct_CheckType ( oyStruct_s obj,
oyOBJECT_e  type 
)

check if the object is a class or is inherited of a class

Function oyStruct_CheckType

Version
Oyranos: 0.3.0
Date
2011/02/15
Since
2011/02/02 (Oyranos: 0.3.0)

References oyStruct_s::type_.

◆ oyStruct_DeAllocate()

OYAPI void OYEXPORT oyStruct_DeAllocate ( oyStruct_s st,
oyPointer  ptr 
)

let a object deallocate some memory

Function oyStruct_DeAllocate

Version
Oyranos: 0.9.7
Since
2017/10/23 (Oyranos: 0.9.7)
Date
2017/10/23

◆ oyStruct_GetAllocator()

oyAlloc_f oyStruct_GetAllocator ( oyStruct_s obj)

get the memory allocator of a object

Function oyStruct_GetAllocator

Version
Oyranos: 0.3.0
Date
2011/01/30
Since
2011/01/30 (Oyranos: 0.3.0)

References oyStruct_s::type_.

◆ oyStruct_GetDeAllocator()

oyDeAlloc_f oyStruct_GetDeAllocator ( oyStruct_s obj)

get the memory allocator of a object

Function oyStruct_GetDeAllocator

Version
Oyranos: 0.3.0
Date
2011/01/30
Since
2011/01/30 (Oyranos: 0.3.0)

References oyStruct_s::type_.