1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[event] const char *name

This commit is contained in:
Witold Filipczyk 2022-01-30 15:08:45 +01:00
parent 66faddfef9
commit 5f56b97a34
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ invalid_event_id(int id)
}
int
register_event(char *name)
register_event(const char *name)
{
int id = get_event_id(name);
struct event *event;

View File

@ -60,7 +60,7 @@ typedef enum evhook_status (*event_hook_T)(va_list ap, void *data);
/* This registers an event of name @name, allocating an id number for it. */
/* The function returns the id or negative number upon error. */
int register_event(char *name);
int register_event(const char *name);
/* This unregisters an event number @event, freeing the resources it
* occupied, chain of associated hooks and unallocating the event id for
@ -76,7 +76,7 @@ void unregister_event_hook(int id, event_hook_T callback);
/*** Interface for table driven event hooks maintainance */
struct event_hook_info {
char *name;
const char *name;
int priority;
event_hook_T callback;
void *data;