libalpm
Arch Linux Package Manager Library
hook.c File Reference
#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
#include "handle.h"
#include "hook.h"
#include "ini.h"
#include "log.h"
#include "trans.h"
#include "util.h"
Include dependency graph for hook.c:

Macros

#define error(...)   _alpm_log(handle, ALPM_LOG_ERROR, __VA_ARGS__); return 1;
 
#define warning(...)   _alpm_log(handle, ALPM_LOG_WARNING, __VA_ARGS__);
 
#define _save_matches(_op, _matches)
 

Functions

static alpm_list_tfind_hook (alpm_list_t *haystack, const void *needle)
 

Macro Definition Documentation

◆ _save_matches

#define _save_matches ( _op,
_matches )
Value:
if(t->op & _op && _matches) { \
hook->matches = alpm_list_join(hook->matches, _matches); \
} else { \
alpm_list_free(_matches); \
}
alpm_list_t * alpm_list_join(alpm_list_t *first, alpm_list_t *second)
Join two lists.
Definition alpm_list.c:150

◆ error

◆ warning

#define warning ( ...)    _alpm_log(handle, ALPM_LOG_WARNING, __VA_ARGS__);

Function Documentation

◆ find_hook()

static alpm_list_t * find_hook ( alpm_list_t * haystack,
const void * needle )
static