mysql\_session\_track\_get\_next(3) MariaDB Connector/C mysql\_session\_track\_get\_next(3)

## [Name](#Name)

mysql\_session\_track\_get\_next - Retrieves the next session status change information

## [Synopsis](#Synopsis)

```
#include <mysql.h>
int mysql_session_track_get_next(MYSQL * mysql,


                                 enum enum_session_state_type type,


                                 const char **data,


                                 size_t *length );
    
```

## [Description](#Description)

mysql\_session\_track\_get\_next() retrieves the session status change information received from the server after a successful call to [**mysql\_session\_track\_get\_first(3)**](/man/os/mariadb-12.3/mysql_session_track_get_first.3).

mysql\_session\_track\_get\_next() needs to be called repeatedly until a non zero return value indicates end of data.

## [Parameters](#Parameters)

•

mysql - mysql handle, which was previously allocated by [**mysql\_init(3)**](/man/os/mariadb-12.3/mysql_init.3) and connected bys [**mysql\_real\_connect(3)**](/man/os/mariadb-12.3/mysql_real_connect.3).

•

type - type of information. Valid values are

•

SESSION\_TRACK\_SYSTEM\_VARIABLES

•

SESSION\_TRACK\_SCHEMA

•

SESSION\_TRACK\_STATE\_CHANGE

•

SESSION\_TRACK\_GTIDS (unsupported)

•

data - pointer to data, which must be declared as const char *

•

length - pointer to a size\_t variable, which will contain the length of data

## [Return value](#Return_value)

Zero for success, nonzero if an error occurred.

## [History](#History)

mysql\_session\_track\_get\_next() was added in Connector/C 3.0 and MariaDB Server 10.2.

## [See also](#See_also)

[**mysql\_session\_track\_get\_first(3)**](/man/os/mariadb-12.3/mysql_session_track_get_first.3)

Version 3.4

---

Document: mysql_session_track_get_next(3) from mariadb-12.3 12.3.3-r2 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
