ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
queries.h
Go to the documentation of this file.
1#pragma once
2
3#include "queries_generated.h"
4#include <ascii-chat/otel.h>
5
6/* Gotel reads the generated records directly without imposing its descriptor
7 * layout on the application catalog. The generated table has static lifetime.
8 */
9static bool __attribute__((unused))
10database_query_get(const void *context, size_t index, gotel_query_t *out) {
11 const struct database_query *queries = context;
12 if (!queries || !out || index >= DATABASE_QUERY_COUNT)
13 return false;
14 *out = (gotel_query_t){queries[index].name, queries[index].sql};
15 return true;
16}
int32_t vec_t __attribute__((vector_size(4 *4)))
SESSION_CREATED (PACKET_TYPE_ACIP_SESSION_CREATED) - Session created response.
Definition vector.h:42
static bool size_t index
Definition queries.h:10
static bool size_t gotel_query_t * out
Definition queries.h:10
@ DATABASE_QUERY_COUNT
const char * name