mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
more trailing whitespace and extern removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -24,11 +24,11 @@
|
||||
#ifndef _ASTERISK_LOCALTIME_H
|
||||
#define _ASTERISK_LOCALTIME_H
|
||||
|
||||
extern int ast_tzsetwall(void);
|
||||
extern void ast_tzset(const char *name);
|
||||
extern struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
|
||||
extern time_t ast_mktime(struct tm * const tmp, const char *zone);
|
||||
extern char *ast_ctime(const time_t * const timep);
|
||||
extern char *ast_ctime_r(const time_t * const timep, char *buf);
|
||||
int ast_tzsetwall(void);
|
||||
void ast_tzset(const char *name);
|
||||
struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
|
||||
time_t ast_mktime(struct tm * const tmp, const char *zone);
|
||||
char *ast_ctime(const time_t * const timep);
|
||||
char *ast_ctime_r(const time_t * const timep, char *buf);
|
||||
|
||||
#endif /* _ASTERISK_LOCALTIME_H */
|
||||
|
@@ -43,7 +43,7 @@ extern "C" {
|
||||
#define VERBOSE_PREFIX_1 " "
|
||||
#define VERBOSE_PREFIX_2 " == "
|
||||
#define VERBOSE_PREFIX_3 " -- "
|
||||
#define VERBOSE_PREFIX_4 " > "
|
||||
#define VERBOSE_PREFIX_4 " > "
|
||||
|
||||
/*! Used for sending a log message */
|
||||
/*!
|
||||
@@ -59,28 +59,28 @@ extern "C" {
|
||||
\param function Will be provided by the LOG_* macro
|
||||
\param fmt This is what is important. The format is the same as your favorite breed of printf. You know how that works, right? :-)
|
||||
*/
|
||||
extern void ast_log(int level, const char *file, int line, const char *function, const char *fmt, ...)
|
||||
void ast_log(int level, const char *file, int line, const char *function, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 5, 6)));
|
||||
|
||||
extern void ast_backtrace(void);
|
||||
void ast_backtrace(void);
|
||||
|
||||
extern void ast_queue_log(const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt, ...)
|
||||
void ast_queue_log(const char *queuename, const char *callid, const char *agent, const char *event, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 5, 6)));
|
||||
|
||||
/*! Send a verbose message (based on verbose level)
|
||||
/*! Send a verbose message (based on verbose level)
|
||||
\brief This works like ast_log, but prints verbose messages to the console depending on verbosity level set.
|
||||
ast_verbose(VERBOSE_PREFIX_3 "Whatever %s is happening\n", "nothing");
|
||||
This will print the message to the console if the verbose level is set to a level >= 3
|
||||
Note the abscence of a comma after the VERBOSE_PREFIX_3. This is important.
|
||||
VERBOSE_PREFIX_1 through VERBOSE_PREFIX_3 are defined.
|
||||
*/
|
||||
extern void ast_verbose(const char *fmt, ...)
|
||||
void ast_verbose(const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
extern int ast_register_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete));
|
||||
extern int ast_unregister_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete));
|
||||
extern int ast_verbose_dmesg(void (*verboser)(const char *string, int opos, int replacelast, int complete));
|
||||
extern void ast_console_puts(const char *string);
|
||||
int ast_register_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete));
|
||||
int ast_unregister_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete));
|
||||
int ast_verbose_dmesg(void (*verboser)(const char *string, int opos, int replacelast, int complete));
|
||||
void ast_console_puts(const char *string);
|
||||
|
||||
#define _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__
|
||||
|
||||
|
@@ -29,22 +29,22 @@
|
||||
|
||||
/*!
|
||||
\file
|
||||
\brief The AMI - Asterisk Manager Interface - is a TCP protocol created to
|
||||
\brief The AMI - Asterisk Manager Interface - is a TCP protocol created to
|
||||
manage Asterisk with third-party software.
|
||||
|
||||
Manager protocol packages are text fields of the form a: b. There is
|
||||
always exactly one space after the colon.
|
||||
|
||||
|
||||
The first header type is the "Event" header. Other headers vary from
|
||||
event to event. Headers end with standard \r\n termination.
|
||||
The last line of the manager response or event is an empty line.
|
||||
(\r\n)
|
||||
|
||||
|
||||
** Please try to re-use existing headers to simplify manager message parsing in clients.
|
||||
Don't re-use an existing header with a new meaning, please.
|
||||
You can find a reference of standard headers in doc/manager.txt
|
||||
*/
|
||||
|
||||
|
||||
#define DEFAULT_MANAGER_PORT 5038 /* Default port for Asterisk management via TCP */
|
||||
|
||||
#define EVENT_FLAG_SYSTEM (1 << 0) /* System events such as module load/unload */
|
||||
@@ -100,10 +100,10 @@ int ast_carefulwrite(int fd, char *s, int len, int timeoutms);
|
||||
\param synopsis Help text (one line, up to 30 chars) for CLI manager show commands
|
||||
\param description Help text, several lines
|
||||
*/
|
||||
int ast_manager_register2(
|
||||
const char *action,
|
||||
int authority,
|
||||
int (*func)(struct mansession *s, struct message *m),
|
||||
int ast_manager_register2(
|
||||
const char *action,
|
||||
int authority,
|
||||
int (*func)(struct mansession *s, struct message *m),
|
||||
const char *synopsis,
|
||||
const char *description);
|
||||
|
||||
@@ -116,28 +116,28 @@ int ast_manager_unregister( char *action );
|
||||
/*! \param category Event category, matches manager authorization
|
||||
\param event Event name
|
||||
\param contents Contents of event
|
||||
*/
|
||||
extern int manager_event(int category, const char *event, const char *contents, ...)
|
||||
*/
|
||||
int manager_event(int category, const char *event, const char *contents, ...)
|
||||
__attribute__ ((format (printf, 3,4)));
|
||||
|
||||
/*! Get header from mananger transaction */
|
||||
extern char *astman_get_header(struct message *m, char *var);
|
||||
char *astman_get_header(struct message *m, char *var);
|
||||
|
||||
/*! Get a linked list of the Variable: headers */
|
||||
struct ast_variable *astman_get_variables(struct message *m);
|
||||
|
||||
/*! Send error in manager transaction */
|
||||
extern void astman_send_error(struct mansession *s, struct message *m, char *error);
|
||||
extern void astman_send_response(struct mansession *s, struct message *m, char *resp, char *msg);
|
||||
extern void astman_send_ack(struct mansession *s, struct message *m, char *msg);
|
||||
void astman_send_error(struct mansession *s, struct message *m, char *error);
|
||||
void astman_send_response(struct mansession *s, struct message *m, char *resp, char *msg);
|
||||
void astman_send_ack(struct mansession *s, struct message *m, char *msg);
|
||||
|
||||
extern void astman_append(struct mansession *s, const char *fmt, ...)
|
||||
void astman_append(struct mansession *s, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
|
||||
/*! Called by Asterisk initialization */
|
||||
extern int init_manager(void);
|
||||
int init_manager(void);
|
||||
/*! Called by Asterisk initialization */
|
||||
extern int reload_manager(void);
|
||||
int reload_manager(void);
|
||||
|
||||
#endif /* _ASTERISK_MANAGER_H */
|
||||
|
Reference in New Issue
Block a user