Move sudo_printf extern to sudo_util.h
This commit is contained in:
@@ -112,9 +112,6 @@
|
|||||||
} while (0)
|
} while (0)
|
||||||
#endif /* SUDO_ERROR_WRAP */
|
#endif /* SUDO_ERROR_WRAP */
|
||||||
|
|
||||||
/* XXX - move to sudo_util.h */
|
|
||||||
extern int (*sudo_printf)(int msg_type, const char *fmt, ...);
|
|
||||||
|
|
||||||
typedef void (*sudo_fatal_callback_t)(void);
|
typedef void (*sudo_fatal_callback_t)(void);
|
||||||
|
|
||||||
__dso_public int sudo_fatal_callback_deregister_v1(sudo_fatal_callback_t func);
|
__dso_public int sudo_fatal_callback_deregister_v1(sudo_fatal_callback_t func);
|
||||||
|
@@ -195,6 +195,9 @@ __dso_public id_t sudo_strtoid_v1(const char *str, const char *sep, char **endp,
|
|||||||
__dso_public int sudo_strtomode_v1(const char *cp, const char **errstr);
|
__dso_public int sudo_strtomode_v1(const char *cp, const char **errstr);
|
||||||
#define sudo_strtomode(_a, _b) sudo_strtomode_v1((_a), (_b))
|
#define sudo_strtomode(_a, _b) sudo_strtomode_v1((_a), (_b))
|
||||||
|
|
||||||
|
/* sudo_printf.c */
|
||||||
|
extern int (*sudo_printf)(int msg_type, const char *fmt, ...);
|
||||||
|
|
||||||
/* term.c */
|
/* term.c */
|
||||||
__dso_public bool sudo_term_cbreak_v1(int fd);
|
__dso_public bool sudo_term_cbreak_v1(int fd);
|
||||||
#define sudo_term_cbreak(_a) sudo_term_cbreak_v1((_a))
|
#define sudo_term_cbreak(_a) sudo_term_cbreak_v1((_a))
|
||||||
|
@@ -35,6 +35,7 @@
|
|||||||
#include "sudo_alloc.h"
|
#include "sudo_alloc.h"
|
||||||
#include "sudo_fatal.h"
|
#include "sudo_fatal.h"
|
||||||
#include "sudo_queue.h"
|
#include "sudo_queue.h"
|
||||||
|
#include "sudo_util.h"
|
||||||
#include "sudo_plugin.h"
|
#include "sudo_plugin.h"
|
||||||
|
|
||||||
struct sudo_fatal_callback {
|
struct sudo_fatal_callback {
|
||||||
|
Reference in New Issue
Block a user