Moved log callback definition to alpm.h
This commit is contained in:
parent
03558450c5
commit
d8cdd54a20
3 changed files with 5 additions and 3 deletions
|
@ -61,6 +61,9 @@ int alpm_release();
|
||||||
#define PM_LOG_FLOW2 0x10
|
#define PM_LOG_FLOW2 0x10
|
||||||
#define PM_LOG_FUNCTION 0x20
|
#define PM_LOG_FUNCTION 0x20
|
||||||
|
|
||||||
|
/* Log callback */
|
||||||
|
typedef void (*alpm_cb_log)(unsigned short, char *);
|
||||||
|
|
||||||
int alpm_logaction(char *fmt, ...);
|
int alpm_logaction(char *fmt, ...);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -209,7 +212,7 @@ enum {
|
||||||
PM_TRANS_EVT_UPGRADE_DONE
|
PM_TRANS_EVT_UPGRADE_DONE
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Callback */
|
/* Event callback */
|
||||||
typedef void (*alpm_trans_cb)(unsigned short, void *, void *);
|
typedef void (*alpm_trans_cb)(unsigned short, void *, void *);
|
||||||
|
|
||||||
/* Info parameters */
|
/* Info parameters */
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
/* pacman */
|
/* pacman */
|
||||||
|
#include "alpm.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
/* Internal library log mechanism */
|
/* Internal library log mechanism */
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
|
|
||||||
#define LOG_STR_LEN 256
|
#define LOG_STR_LEN 256
|
||||||
|
|
||||||
typedef void (*alpm_cb_log)(unsigned short, char *);
|
|
||||||
|
|
||||||
void _alpm_log(unsigned char flag, char *fmt, ...);
|
void _alpm_log(unsigned char flag, char *fmt, ...);
|
||||||
|
|
||||||
int _alpm_log_action(unsigned char usesyslog, FILE *f, char *fmt, ...);
|
int _alpm_log_action(unsigned char usesyslog, FILE *f, char *fmt, ...);
|
||||||
|
|
Loading…
Add table
Reference in a new issue