ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
queries.h
Go to the documentation of this file.
1#pragma once
2
3#include <ascii-chat/otel.h>
4#include "queries_generated.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. */
8static bool __attribute__((unused)) database_query_get(const void *context, size_t index, gotel_query_t *out) {
9 const struct database_query *queries = context;
10 if (!queries || !out || index >= DATABASE_QUERY_COUNT)
11 return false;
12 *out = (gotel_query_t){queries[index].name, queries[index].sql};
13 return true;
14}
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:8
static bool size_t gotel_query_t * out
Definition queries.h:8
@ DATABASE_QUERY_COUNT
This is the handoff point for database query. Callers fill name, sql, access, rows before passing it ...
const char * name