Logo Search packages:      
Sourcecode: zbar version File versions  Download package

void zbar_symbol_ref ( const zbar_symbol_t symbol,
int  refs 
)

symbol reference count manipulation. increment the reference count when you store a new reference to the symbol. decrement when the reference is no longer used. do not refer to the symbol once the count is decremented and the containing image has been recycled or destroyed.

Note:
the containing image holds a reference to the symbol, so you only need to use this if you keep a symbol after the image has been destroyed or reused.
Since:
0.9

Definition at line 73 of file symbol.c.

References zbar_symbol_ref().

Referenced by zbar_symbol_ref().

{
    zbar_symbol_t *ncsym = (zbar_symbol_t*)sym;
    _zbar_symbol_refcnt(ncsym, refs);
}


Generated by  Doxygen 1.6.0   Back to index