krähemann.com

AgsLog

AgsLog — Log

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

#define AGS_TYPE_LOG
struct AgsLog
struct AgsLogClass

Object Hierarchy

    GObject
    ╰── AgsLog

Includes

#include <ags/lib/ags_log.h>

Description

The AgsLog logging class.

Functions

AGS_LOG_GET_OBJ_MUTEX()

#define AGS_LOG_GET_OBJ_MUTEX(obj) (&(((AgsLog *) obj)->obj_mutex))

ags_log_add_message ()

void
ags_log_add_message (AgsLog *log,
                     gchar *str);

Add a message to log .

Parameters

log

the AgsLog

 

str

the message.

[transfer full]

Since: 3.0.0


ags_log_get_messages ()

GList *
ags_log_get_messages (AgsLog *log);

Get log messages as GList containing strings.

Parameters

log

the AgsLog

 

Returns

the GList containing log messages.

[element-type utf8][transfer none]

Since: 3.0.0


ags_log_get_instance ()

AgsLog *
ags_log_get_instance ();

Get your logging instance.

Returns

the AgsLog instance.

[transfer none]

Since: 3.0.0


ags_log_new ()

AgsLog *
ags_log_new ();

Instantiate a new AgsLog.

Returns

the new instance

Since: 3.0.0


AGS_IS_LOG()

#define AGS_IS_LOG(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LOG))

AGS_IS_LOG_CLASS()

#define AGS_IS_LOG_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_LOG))

AGS_LOG()

#define AGS_LOG(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LOG, AgsLog))

AGS_LOG_CLASS()

#define AGS_LOG_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LOG, AgsLogClass))

AGS_LOG_GET_CLASS()

#define AGS_LOG_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_LOG, AgsLogClass))

ags_log_get_type ()

GType
ags_log_get_type (void);

Types and Values

AGS_TYPE_LOG

#define AGS_TYPE_LOG                (ags_log_get_type())

struct AgsLog

struct AgsLog;

struct AgsLogClass

struct AgsLogClass {
  GObjectClass gobject;
};