AgsOscParser

AgsOscParser — the OSC parser

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Includes

#include <ags/audio/osc/ags_osc_parser.h>

Description

AgsOscParser reads your osc parsers.

Functions

AGS_OSC_PARSER_GET_OBJ_MUTEX()

#define AGS_OSC_PARSER_GET_OBJ_MUTEX(obj) (&(((AgsOscParser *) obj)->obj_mutex))

ags_osc_parser_read_gint32 ()

gint32
ags_osc_parser_read_gint32 (AgsOscParser *osc_parser);

Read 32 bit integer.

Parameters

osc_parser

the AgsOscParser

 

Returns

the gint32 read

Since: 3.0.0


ags_osc_parser_read_gint64 ()

gint64
ags_osc_parser_read_gint64 (AgsOscParser *osc_parser);

Read 64 bit integer.

Parameters

osc_parser

the AgsOscParser

 

Returns

the gint64 read

Since: 3.0.0


ags_osc_parser_read_gfloat ()

gfloat
ags_osc_parser_read_gfloat (AgsOscParser *osc_parser);

Read floating point value.

Parameters

osc_parser

the AgsOscParser

 

Returns

the gfloat read

Since: 3.0.0


ags_osc_parser_read_gdouble ()

gdouble
ags_osc_parser_read_gdouble (AgsOscParser *osc_parser);

Read double precision floating point value.

Parameters

osc_parser

the AgsOscParser

 

Returns

the gdouble read

Since: 3.0.0


ags_osc_parser_read_text ()

gchar *
ags_osc_parser_read_text (AgsOscParser *osc_parser,
                          gint length);

Read text.

Parameters

osc_parser

the AgsOscParser

 

length

the length

 

Returns

the text read as string

Since: 3.0.0


ags_osc_parser_osc_getc ()

int
ags_osc_parser_osc_getc (AgsOscParser *osc_parser);

Read byte.

Parameters

osc_parser

the AgsOscParser

 

Returns

the byte read

Since: 3.0.0


ags_osc_parser_on_error ()

void
ags_osc_parser_on_error (AgsOscParser *osc_parser,
                         GError **error);

On error event.

Parameters

osc_parser

the AgsOscParser

 

error

the GError return location

 

Since: 3.0.0


ags_osc_parser_parse_full ()

xmlDoc *
ags_osc_parser_parse_full (AgsOscParser *osc_parser);

Parse full document.

Parameters

osc_parser

the AgsOscParser

 

Returns

the parsed XML doc.

[transfer none]

Since: 3.0.0


ags_osc_parser_parse_bytes ()

xmlNode *
ags_osc_parser_parse_bytes (AgsOscParser *osc_parser,
                            unsigned char *osc_buffer,
                            guint buffer_length);

Parse bytes.

Parameters

osc_parser

the AgsOscParser

 

osc_buffer

the data buffer

 

buffer_length

the length of data buffer

 

Returns

the parsed XML node.

[transfer none]

Since: 3.0.0


ags_osc_parser_packet ()

xmlNode *
ags_osc_parser_packet (AgsOscParser *osc_parser);

Parse OSC packet.

Parameters

osc_parser

the AgsOscParser

 

Returns

the parsed XML node.

[transfer none]

Since: 3.0.0


ags_osc_parser_bundle ()

xmlNode *
ags_osc_parser_bundle (AgsOscParser *osc_parser);

Parse OSC bundle.

Parameters

osc_parser

the AgsOscParser

 

Returns

the parsed XML node.

[transfer none]

Since: 3.0.0


ags_osc_parser_message ()

xmlNode *
ags_osc_parser_message (AgsOscParser *osc_parser);

Parse OSC message.

Parameters

osc_parser

the AgsOscParser

 

Returns

the parsed XML node.

[transfer none]

Since: 3.0.0


ags_osc_parser_value ()

xmlNode *
ags_osc_parser_value (AgsOscParser *osc_parser,
                      guint v_type);

Parse OSC value.

Parameters

osc_parser

the AgsOscParser

 

v_type

value type

 

Returns

the parsed XML node.

[transfer none]

Since: 3.0.0


ags_osc_parser_new ()

AgsOscParser *
ags_osc_parser_new ();

Creates a new instance of AgsOscParser

Returns

the new AgsOscParser

Since: 3.0.0

Types and Values

AGS_OSC_PARSER_MAX_TEXT_LENGTH

#define AGS_OSC_PARSER_MAX_TEXT_LENGTH (4096)

enum AgsOscParserFlags

Members

AGS_OSC_PARSER_EOF