libsquashfs: sqfs_object_t Interface Reference

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

Loading...
Searching...
No Matches
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:

## Static Public Member Functions
static SQFS_INLINE void | sqfs_destroy (void *obj)
| Destroy an object and free all its memory.
static SQFS_INLINE void * | sqfs_copy (const void *obj)
| Create a deep copy of an object if possible.

## 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()

SQFS_INLINE void * sqfs_copy | ( | const void * | obj | ) |
| static

Create a deep copy of an object if possible.

Parameters

  obj | A 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()

SQFS_INLINE void sqfs_destroy | ( | void * | obj | ) |
| static

Destroy an object and free all its memory.

Parameters

  obj | A pointer to an object or NULL

Definition at line 139 of file predef.h.

## Field Documentation

## ◆ copy

struct sqfs_object_t *(* copy) (const struct sqfs_object_t *orig)

Definition at line 127 of file predef.h.

## ◆ destroy

void(* destroy) (struct sqfs_object_t *instance)

Definition at line 127 of file predef.h.

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

- include/sqfs/predef.h