GtuberHeartbeat: Gtuber Reference Manual

## GtuberHeartbeat GtuberHeartbeat — a base class for creating heartbeat objects |

## Functions

void | gtuber_heartbeat_set_interval ()
GQuark | gtuber_heartbeat_error_quark ()

## Types and Values

#define | GTUBER_HEARTBEAT_ERROR
struct | GtuberHeartbeat
struct | GtuberHeartbeatClass

## Object Hierarchy

        GObject
        ╰── GtuberHeartbeat

## Description

## Functions

### gtuber_heartbeat_set_interval ()

    void
    gtuber_heartbeat_set_interval (GtuberHeartbeat *heartbeat,
                                   guint interval);

Sets how often ping should be performed. Interval value is in milliseconds.

#### Parameters

heartbeat | a GtuberHeartbeat |
interval | ping interval in milliseconds |

### gtuber_heartbeat_error_quark ()

    GQuark
    gtuber_heartbeat_error_quark (void);

## Types and Values

### GTUBER_HEARTBEAT_ERROR

    #define GTUBER_HEARTBEAT_ERROR           (gtuber_heartbeat_error_quark ())

### struct GtuberHeartbeat

    struct GtuberHeartbeat;

Media info heartbeat base class.

### struct GtuberHeartbeatClass

    struct GtuberHeartbeatClass {
      GObjectClass parent_class;

      GtuberFlow (* ping) (GtuberHeartbeat *heartbeat,
                           SoupMessage    **msg,
                           GError         **error);

      GtuberFlow (* pong) (GtuberHeartbeat *heartbeat,
                           SoupMessage     *msg,
                           GInputStream    *stream,
                           GError         **error);
    };

#### Members

`ping` () | Create and pass SoupMessage to send. |
`pong` () | Read ping response. |