mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Update: Save whether client data is available
This commit is contained in:
parent
6f29ca2996
commit
2db94a2a81
@ -491,6 +491,7 @@ void event_emit_va(const char *trigger, ...) {
|
||||
}
|
||||
|
||||
if (client) {
|
||||
event->client_data = true;
|
||||
event->connection_id = client->con->id;
|
||||
event->connection_time = client->con->con_time;
|
||||
event->client_admin_command = client->admin_command;
|
||||
|
@ -9,6 +9,8 @@
|
||||
#ifndef __EVENT_H__
|
||||
#define __EVENT_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <libxml/xmlmemory.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
@ -68,6 +70,7 @@ struct event_tag {
|
||||
char *trigger;
|
||||
|
||||
/* from client */
|
||||
bool client_data;
|
||||
unsigned long connection_id; /* from client->con->id */
|
||||
time_t connection_time; /* from client->con->con_time */
|
||||
admin_command_id_t client_admin_command; /* from client->admin_command */
|
||||
|
Loading…
Reference in New Issue
Block a user