LMMS
Loading...
Searching...
No Matches
base.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  v3_funknown
struct  v3_plugin_base

Macros

#define constexpr
#define V3_COM_COMPAT   0
#define V3_API
#define V3_ID(a, b, c, d)
#define V3_ID_COPY(iid)

Typedefs

typedef int32_t v3_result
typedef int16_t v3_str_128[128]
typedef uint8_t v3_bool
typedef uint32_t v3_param_id
typedef uint8_t v3_tuid[16]

Enumerations

enum  {
  V3_NO_INTERFACE = -1 , V3_OK , V3_TRUE = V3_OK , V3_FALSE ,
  V3_INVALID_ARG , V3_NOT_IMPLEMENTED , V3_INTERNAL_ERR , V3_NOT_INITIALIZED ,
  V3_NOMEM
}

Functions

static bool v3_tuid_match (const v3_tuid a, const v3_tuid b)

Variables

static constexpr const v3_tuid v3_funknown_iid
static constexpr const v3_tuid v3_plugin_base_iid

Macro Definition Documentation

◆ constexpr

#define constexpr

deal with C vs C++ differences

◆ V3_API

#define V3_API

◆ V3_COM_COMPAT

#define V3_COM_COMPAT   0

◆ V3_ID

#define V3_ID ( a,
b,
c,
d )
Value:
{ \
((a) & 0xFF000000) >> 24, \
((a) & 0x00FF0000) >> 16, \
((a) & 0x0000FF00) >> 8, \
((a) & 0x000000FF), \
\
((b) & 0xFF000000) >> 24, \
((b) & 0x00FF0000) >> 16, \
((b) & 0x0000FF00) >> 8, \
((b) & 0x000000FF), \
\
((c) & 0xFF000000) >> 24, \
((c) & 0x00FF0000) >> 16, \
((c) & 0x0000FF00) >> 8, \
((c) & 0x000000FF), \
\
((d) & 0xFF000000) >> 24, \
((d) & 0x00FF0000) >> 16, \
((d) & 0x0000FF00) >> 8, \
((d) & 0x000000FF), \
}
uint8_t a
Definition Spc_Cpu.h:141
unsigned d
Definition inflate.c:940
return c
Definition crypt.c:175
b
Definition crypt.c:628

◆ V3_ID_COPY

#define V3_ID_COPY ( iid)
Value:
{ iid[0], iid[1], iid[ 2], iid[ 3], iid[ 4], iid[ 5], iid[ 6], iid[ 7], \
iid[8], iid[9], iid[10], iid[11], iid[12], iid[13], iid[14], iid[15] }

Typedef Documentation

◆ v3_bool

typedef uint8_t v3_bool

◆ v3_param_id

◆ v3_result

typedef int32_t v3_result

various types

◆ v3_str_128

typedef int16_t v3_str_128[128]

◆ v3_tuid

typedef uint8_t v3_tuid[16]

low-level ABI nonsense

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
V3_NO_INTERFACE 
V3_OK 
V3_TRUE 
V3_FALSE 
V3_INVALID_ARG 
V3_NOT_IMPLEMENTED 
V3_INTERNAL_ERR 
V3_NOT_INITIALIZED 
V3_NOMEM 

Function Documentation

◆ v3_tuid_match()

bool v3_tuid_match ( const v3_tuid a,
const v3_tuid b )
inlinestatic

Variable Documentation

◆ v3_funknown_iid

const v3_tuid v3_funknown_iid
staticconstexpr
Initial value:
=
V3_ID(0x00000000, 0x00000000, 0xC0000000, 0x00000046)
#define V3_ID(a, b, c, d)
Definition base.h:111

◆ v3_plugin_base_iid

const v3_tuid v3_plugin_base_iid
staticconstexpr
Initial value:
=
V3_ID(0x22888DDB, 0x156E45AE, 0x8358B348, 0x08190625)