libsquashfs  1.3.2
A new set of tools and libraries for working with SquashFS images
sqfs_object_t Interface Reference

Base interface for all libsquashfs in-memory data structures. More...

#include <predef.h>

Inheritance diagram for sqfs_object_t:
Collaboration diagram for sqfs_object_t:

Public Member Functions

static SQFS_INLINE void sqfs_destroy (void *obj)
 Destroy an object and free all its memory. More...
 
static SQFS_INLINE void * sqfs_copy (const void *obj)
 Create a deep copy of an object if possible. More...
 

Data Fields

void(* destroy )(struct sqfs_object_t *instance)
 
struct sqfs_object_t *(* copy )(const struct sqfs_object_t *orig)
 

Detailed Description

Base interface for all libsquashfs in-memory data structures.

Definition at line 126 of file predef.h.

Member Function Documentation

◆ sqfs_copy()

static SQFS_INLINE void * sqfs_copy ( const void *  obj)

Create a deep copy of an object if possible.

Parameters
objA pointer to an object
Returns
A pointer to a new object, instantiated from the old on success, NULL on failure.

Definition at line 155 of file predef.h.

◆ sqfs_destroy()

static SQFS_INLINE void sqfs_destroy ( void *  obj)

Destroy an object and free all its memory.

Parameters
objA pointer to an object or NULL
Examples:
list_files.c.

Definition at line 139 of file predef.h.


The documentation for this interface was generated from the following file: