#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <pcreposix.h>
#include "regeng.h"
#include "util.h"
#include "aion.h"
#include "cmd.h"
#include "console.h"
#include "chatlog.h"
#include "event.h"
Functions | |
static bool | chatlog_open (void) |
void | chatlog_parse (uint32_t re_id, const char *matchstr, regmatch_t *rematch, size_t rematch_num) |
bool | chatlog_init () |
bool | chatlog_readstr (char *chatstr) |
bool | chatlog_poll () |
bool | chatlog_readfile (char *file) |
Chatlog Event Processing Functions | |
These process various events that are triggered by the regeng engine when it parses the chat log. They process stuff like:
| |
void | parse_action_loot_item (char *player, uint32_t itemid) |
void | parse_action_damage_inflict (char *player, char *target, char *damage, char *skill) |
void | parse_action_group_self_join (void) |
void | parse_action_group_self_leave (void) |
void | parse_action_group_player_join (char *who) |
void | parse_action_group_player_leave (char *who) |
void | parse_action_chat_general (char *name, char *txt) |
void | parse_action_chat_whisper (char *name, char *txt) |
void | parse_action_chat_shout (char *name, char *txt) |
void | parse_action_roll_item_self (void) |
void | parse_action_roll_item_player (char *who) |
void | parse_action_roll_item_pass (char *who) |
void | parse_action_roll_item_highest (char *who) |
Variables | |
static FILE * | chatlog_file = NULL |
static re_callback_t | chatlog_parse |
struct regeng | re_aion [] |
Aion chatlog parser