Remove extern from header files.

This commit is contained in:
Kaian 2014-10-24 15:44:58 +02:00
parent 8988411eaa
commit c042121331
12 changed files with 137 additions and 127 deletions

View File

@ -143,7 +143,7 @@ struct dns_cache
*
* @return 0 on spawn success, 1 otherwise
*/
extern int
int
capture_online();
/**
@ -152,7 +152,7 @@ capture_online();
* This function is used as worker thread for capturing filtered packets and
* pass them to the UI layer.
*/
extern void
void
capture_thread(void *none);
/**
@ -166,7 +166,7 @@ capture_thread(void *none);
* @return 0 if load has been successfull, 1 otherwise
*
*/
extern int
int
capture_offline();
/**
@ -178,7 +178,7 @@ capture_offline();
*
* @param handle LIBPCAP capture handler
*/
extern void
void
parse_packet(u_char *mode, const struct pcap_pkthdr *header, const u_char *packet);
void
@ -188,7 +188,7 @@ capture_close();
* @brief Get datalink header size
*
*/
extern int
int
datalink_size(int datalink);
pcap_dumper_t *

View File

@ -59,28 +59,28 @@ struct sip_call_group
bool sdp_only;
};
extern sip_call_group_t *
sip_call_group_t *
call_group_create();
extern void
void
call_group_add(sip_call_group_t *group, sip_call_t *call);
extern void
void
call_group_del(sip_call_group_t *group, sip_call_t *call);
extern int
int
call_group_exists(sip_call_group_t *group, sip_call_t *call);
extern int
int
call_group_color(sip_call_group_t *group, sip_call_t *call);
extern sip_call_t *
sip_call_t *
call_group_get_next(sip_call_group_t *group, sip_call_t *call);
extern int
int
call_group_msg_count(sip_call_group_t *group);
extern int
int
call_group_msg_number(sip_call_group_t *group, sip_msg_t *msg);
/**
@ -93,10 +93,10 @@ call_group_msg_number(sip_call_group_t *group, sip_msg_t *msg);
* @param msg Actual SIP msg from any call of the group (can be NULL)
* @return Next chronological message in the group
*/
extern sip_msg_t *
sip_msg_t *
call_group_get_next_msg(sip_call_group_t *group, sip_msg_t *msg);
extern int
int
sip_msg_is_older(sip_msg_t *one, sip_msg_t *two);
#endif /* __SNGREP_GROUP_H_ */

View File

@ -47,7 +47,8 @@ typedef struct config_option option_opt_t;
enum option_type
{
SETTING = 0, IGNORE = 1,
SETTING = 0,
IGNORE = 1,
};
/**
@ -75,7 +76,7 @@ struct config_option
*
* @return 0 in all cases
*/
extern int
int
init_options();
/**
@ -88,7 +89,7 @@ init_options();
* @param fname Full path configuration file name
* @return 0 in case of parse success, -1 otherwise
*/
extern int
int
read_options(const char *fname);
/**
@ -100,7 +101,7 @@ read_options(const char *fname);
* @param opt Name of optionurable option
* @return configuration option value or NULL if not found
*/
extern const char*
const char*
get_option_value(const char *opt);
/**
@ -137,7 +138,7 @@ set_option_int_value(const char *opt, int value);
* @param opt Name of configuration option
* @param value Value of configuration option
*/
extern void
void
set_option_value(const char *opt, const char *value);
/**
@ -148,7 +149,7 @@ set_option_value(const char *opt, const char *value);
* @param opt Name of configuration option
* @param value Value of configuration option
*/
extern void
void
set_ignore_value(const char *opt, const char *value);
/**
@ -160,7 +161,7 @@ set_ignore_value(const char *opt, const char *value);
* @param opt Name of configuration option
* @return 1 if value is "on" or "1", 0 otherwise
*/
extern int
int
is_option_enabled(const char *opt);
/**
@ -172,7 +173,7 @@ is_option_enabled(const char *opt);
* @param opt Name of configuration option
* @return 1 if value is "off" or "0", 0 otherwise
*/
extern int
int
is_option_disabled(const char *opt);
/**
@ -185,10 +186,10 @@ is_option_disabled(const char *opt);
* @param fvalue Value to check if it has an ignore directive
* @return 1 if value for field exists
*/
extern int
int
is_ignored_value(const char *field, const char *fvalue);
extern void
void
toggle_option(const char *option);
#endif

View File

@ -197,7 +197,7 @@ struct sip_call
* @param payload Raw payload content
* @return a new allocated message
*/
extern sip_msg_t *
sip_msg_t *
sip_msg_create(const char *header, const char *payload);
/**
@ -209,7 +209,7 @@ sip_msg_create(const char *header, const char *payload);
*
* @param msg SIP message to be deleted
*/
extern void
void
sip_msg_destroy(sip_msg_t *msg);
/**
@ -221,7 +221,7 @@ sip_msg_destroy(sip_msg_t *msg);
* @param callid Call-ID Header value
* @return pointer to the sip_call created
*/
extern sip_call_t *
sip_call_t *
sip_call_create(char *callid);
/**
@ -233,7 +233,7 @@ sip_call_create(char *callid);
*
* @param call Call to be destroyed
*/
extern void
void
sip_call_destroy(sip_call_t *call);
/**
@ -244,7 +244,7 @@ sip_call_destroy(sip_call_t *call);
* @param payload SIP message payload
* @return callid parsed from Call-ID header
*/
extern char *
char *
sip_get_callid(const char* payload);
/**
@ -259,7 +259,7 @@ sip_get_callid(const char* payload);
* @param payload Raw ngrep payload
* @return a SIP msg structure pointer
*/
extern sip_msg_t *
sip_msg_t *
sip_load_message(const char *header, const char *payload);
/**
@ -267,7 +267,7 @@ sip_load_message(const char *header, const char *payload);
*
* @return how many calls are linked in the list
*/
extern int
int
sip_calls_count();
/**
@ -279,7 +279,7 @@ sip_calls_count();
* @param call Call to check
* @return 1 if call is filtered, 0 otherwise
*/
extern int
int
sip_check_call_ignore(sip_call_t *call);
/**
@ -290,7 +290,7 @@ sip_check_call_ignore(sip_call_t *call);
* @param id Attribute id
* @return Attribute header data structure pointer
*/
extern sip_attr_hdr_t *
sip_attr_hdr_t *
sip_attr_get_header(enum sip_attr_id id);
/**
@ -302,7 +302,7 @@ sip_attr_get_header(enum sip_attr_id id);
* @param id Attribut id
* @return Attribute description from its header
*/
extern const char *
const char *
sip_attr_get_description(enum sip_attr_id id);
/**
@ -314,7 +314,7 @@ sip_attr_get_description(enum sip_attr_id id);
* @param id Attribut id
* @return Attribute name from its header
*/
extern const char *
const char *
sip_attr_get_name(enum sip_attr_id id);
/**
@ -325,7 +325,7 @@ sip_attr_get_name(enum sip_attr_id id);
* @param name Attribut name
* @return Attribute id or 0 if not found
*/
extern enum sip_attr_id
enum sip_attr_id
sip_attr_from_name(const char *name);
/**
@ -338,7 +338,7 @@ sip_attr_from_name(const char *name);
* @param id Attribute id
* @param value Attribute value
*/
extern void
void
sip_attr_set(sip_attr_t **list, enum sip_attr_id id, const char *value);
/**
@ -348,7 +348,7 @@ sip_attr_set(sip_attr_t **list, enum sip_attr_id id, const char *value);
* This can be used for calls and message attributes.
*
*/
extern const char *
const char *
sip_attr_get(sip_attr_t *list, enum sip_attr_id id);
/**
@ -360,7 +360,7 @@ sip_attr_get(sip_attr_t *list, enum sip_attr_id id);
* @param call pointer to the call owner of the message
* @param msg SIP message structure
*/
extern void
void
call_add_message(sip_call_t *call, sip_msg_t *msg);
/**
@ -371,7 +371,7 @@ call_add_message(sip_call_t *call, sip_msg_t *msg);
* @param callid Call-ID Header value
* @return pointer to the sip_call structure found or NULL
*/
extern sip_call_t *
sip_call_t *
call_find_by_callid(const char *callid);
/**
@ -383,7 +383,7 @@ call_find_by_callid(const char *callid);
* @param xcallid X-Call-ID or X-CID Header value
* @return pointer to the sip_call structure found or NULL
*/
extern sip_call_t *
sip_call_t *
call_find_by_xcallid(const char *xcallid);
/**
@ -395,7 +395,7 @@ call_find_by_xcallid(const char *xcallid);
* @param call SIP call structure
* @return how many messages are in the call
*/
extern int
int
call_msg_count(sip_call_t *call);
/**
@ -408,7 +408,7 @@ call_msg_count(sip_call_t *call);
* @param call SIP call structure
* @return The other call structure or NULL if none found
*/
extern sip_call_t *
sip_call_t *
call_get_xcall(sip_call_t *call);
/**
@ -421,7 +421,7 @@ call_get_xcall(sip_call_t *call);
* @param msg Actual SIP msg from the call (can be NULL)
* @return Next chronological message in the call
*/
extern sip_msg_t *
sip_msg_t *
call_get_next_msg(sip_call_t *call, sip_msg_t *msg);
/**
@ -434,7 +434,7 @@ call_get_next_msg(sip_call_t *call, sip_msg_t *msg);
* @param msg Actual SIP msg from the call
* @return Previous chronological message in the call
*/
extern sip_msg_t *
sip_msg_t *
call_get_prev_msg(sip_call_t *call, sip_msg_t *msg);
/**
@ -446,7 +446,7 @@ call_get_prev_msg(sip_call_t *call, sip_msg_t *msg);
* @param cur Current call. Pass NULL to get the first call.
* @return Next call in the list or NULL if there is no next call
*/
extern sip_call_t *
sip_call_t *
call_get_next(sip_call_t *cur);
/**
@ -458,7 +458,7 @@ call_get_next(sip_call_t *cur);
* @param cur Current call
* @return Prev call in the list or NULL if there is no previous call
*/
extern sip_call_t *
sip_call_t *
call_get_prev(sip_call_t *cur);
/**
@ -470,7 +470,7 @@ call_get_prev(sip_call_t *cur);
* @param id Attribute id
* @param value Attribute value
*/
extern void
void
call_set_attribute(sip_call_t *call, enum sip_attr_id id, const char *value);
/**
@ -484,7 +484,7 @@ call_set_attribute(sip_call_t *call, enum sip_attr_id id, const char *value);
* @param id Attribute id
* @return Attribute value or NULL if not found
*/
extern const char *
const char *
call_get_attribute(sip_call_t *call, enum sip_attr_id id);
/**
@ -501,7 +501,7 @@ call_get_attribute(sip_call_t *call, enum sip_attr_id id);
* @param header ngrep header generated by -qpt arguments
* @return 0 on success, 1 on malformed header
*/
extern int
int
msg_parse_header(sip_msg_t *msg, const char *header);
/**
@ -513,7 +513,7 @@ msg_parse_header(sip_msg_t *msg, const char *header);
* @param payload SIP message payload
* @return 0 in all cases
*/
extern int
int
msg_parse_payload(sip_msg_t *msg, const char *payload);
/**
@ -526,7 +526,7 @@ msg_parse_payload(sip_msg_t *msg, const char *payload);
* @param msg Not Parsed (or parsed) message
* @return a parsed message
*/
extern sip_msg_t *
sip_msg_t *
msg_parse(sip_msg_t *msg);
/**
@ -538,7 +538,7 @@ msg_parse(sip_msg_t *msg);
* @param id Attribute id
* @param value Attribute value
*/
extern void
void
msg_set_attribute(sip_msg_t *msg, enum sip_attr_id id, const char *value);
/**
@ -551,7 +551,7 @@ msg_set_attribute(sip_msg_t *msg, enum sip_attr_id id, const char *value);
* @param id Attribute id
* @return Attribute value or NULL if not found
*/
extern const char *
const char *
msg_get_attribute(sip_msg_t *msg, enum sip_attr_id id);
/**
@ -563,7 +563,7 @@ msg_get_attribute(sip_msg_t *msg, enum sip_attr_id id);
* @param msg SIP message that will be checked
* @return 1 if the previous message is equal to msg, 0 otherwise
*/
extern int
int
msg_is_retrans(sip_msg_t *msg);
/**

View File

@ -76,7 +76,7 @@ struct call_flow_info
*
* @return the allocated ncurses panel
*/
extern PANEL *
PANEL *
call_flow_create();
/**
@ -86,7 +86,7 @@ call_flow_create();
*
* @return panel Ncurses panel pointer
*/
extern void
void
call_flow_destroy(PANEL *panel);
/**
@ -99,7 +99,7 @@ call_flow_destroy(PANEL *panel);
* @param msg New readed message
* @return 0 if the panel needs to be redrawn, -1 otherwise
*/
extern int
int
call_flow_redraw_required(PANEL *panel, sip_msg_t *msg);
/**
@ -111,19 +111,19 @@ call_flow_redraw_required(PANEL *panel, sip_msg_t *msg);
* @param panel Ncurses panel pointer
* @return 0 if the panel has been drawn, -1 otherwise
*/
extern int
int
call_flow_draw(PANEL *panel);
extern void
void
call_flow_draw_footer(PANEL *panel);
extern int
int
call_flow_draw_columns(PANEL *panel);
extern int
int
call_flow_draw_message(PANEL *panel, sip_msg_t *msg, int cline);
extern int
int
call_flow_draw_raw(PANEL *panel, sip_msg_t *msg);
/**
@ -137,7 +137,7 @@ call_flow_draw_raw(PANEL *panel, sip_msg_t *msg);
* @param key Pressed keycode
* @return 0 if the function can handle the key, key otherwise
*/
extern int
int
call_flow_handle_key(PANEL *panel, int key);
/**
@ -149,7 +149,7 @@ call_flow_handle_key(PANEL *panel, int key);
* @param panel Ncurses panel pointer
* @return 0 if the screen has help, -1 otherwise
*/
extern int
int
call_flow_help(PANEL *panel);
/**
@ -160,13 +160,13 @@ call_flow_help(PANEL *panel);
*
* @param group Call group pointer to be set in the internal info struct
*/
extern int
int
call_flow_set_group(sip_call_group_t *group);
extern void
void
call_flow_column_add(PANEL *panel, const char *callid, const char *addr);
extern call_flow_column_t *
call_flow_column_t *
call_flow_column_get(PANEL *panel, const char *callid, const char *addr);
#endif

View File

@ -96,7 +96,7 @@ struct call_list_info
*
* @return the allocated ncurses panel
*/
extern PANEL *
PANEL *
call_list_create();
/**
@ -107,7 +107,7 @@ call_list_create();
* @param panel Ncurses panel pointer
* @return panel Ncurses panel pointer
*/
extern void
void
call_list_destroy(PANEL *panel);
/**
@ -118,7 +118,7 @@ call_list_destroy(PANEL *panel);
*
* @param panel Ncurses panel pointer
*/
extern void
void
call_list_draw_footer(PANEL *panel);
/**
@ -131,7 +131,7 @@ call_list_draw_footer(PANEL *panel);
* @param msg New readed message
* @return 0 if the panel needs to be redrawn, -1 otherwise
*/
extern int
int
call_list_redraw_required(PANEL *panel, sip_msg_t *msg);
/**
@ -143,7 +143,7 @@ call_list_redraw_required(PANEL *panel, sip_msg_t *msg);
* @param panel Ncurses panel pointer
* @return 0 if the panel has been drawn, -1 otherwise
*/
extern int
int
call_list_draw(PANEL *panel);
/**
@ -157,7 +157,7 @@ call_list_draw(PANEL *panel);
* @param panel Ncurses panel pointer
* @param active Enable/Disable flag
*/
extern void
void
call_list_form_activate(PANEL *panel, bool active);
/**
@ -170,7 +170,7 @@ call_list_form_activate(PANEL *panel, bool active);
* @param call Call to get data from
* @return A string with the line text
*/
extern const char*
const char*
call_list_line_text(PANEL *panel, sip_call_t *call);
/**
@ -184,7 +184,7 @@ call_list_line_text(PANEL *panel, sip_call_t *call);
* @param key Pressed keycode
* @return 0 if the function can handle the key, key otherwise
*/
extern int
int
call_list_handle_key(PANEL *panel, int key);
/**
@ -196,7 +196,7 @@ call_list_handle_key(PANEL *panel, int key);
* @param key Pressed keycode
* @return 0 if the function can handle the key, key otherwise
*/
extern int
int
call_list_handle_form_key(PANEL *panel, int key);
/**
@ -208,7 +208,7 @@ call_list_handle_form_key(PANEL *panel, int key);
* @param panel Ncurses panel pointer
* @return 0 if the screen has help, -1 otherwise
*/
extern int
int
call_list_help(PANEL *panel);
/**
@ -223,7 +223,7 @@ call_list_help(PANEL *panel);
* @param panel Call list panel pointer
* @return 27 if user confirmed exit, 0 otherwise
*/
extern int
int
call_list_exit_confirm(PANEL *panel);
/**
@ -239,7 +239,7 @@ call_list_exit_confirm(PANEL *panel);
* @param width Column Width
* @return 0 if column has been successufly added to the list, -1 otherwise
*/
extern int
int
call_list_add_column(PANEL *panel, enum sip_attr_id id, const char* attr, const char *title,
int width);
@ -252,7 +252,7 @@ call_list_add_column(PANEL *panel, enum sip_attr_id id, const char* attr, const
*
* @param panel Call list panel pointer
*/
extern void
void
call_list_filter_update(PANEL *panel);
/**
@ -261,7 +261,7 @@ call_list_filter_update(PANEL *panel);
* This funtion will clear all call lines in the list
* @param panel Call list panel pointer
*/
extern void
void
call_list_clear(PANEL *panel);
/**
@ -270,7 +270,7 @@ call_list_clear(PANEL *panel);
* @param panel Ncurses panel pointer
* @return number of calls that match display filter
*/
extern int
int
call_list_count(PANEL *panel);
/**
@ -280,7 +280,7 @@ call_list_count(PANEL *panel);
* @param call Start searching from this call
* @return next matching call or NULL
*/
extern sip_call_t *
sip_call_t *
call_list_get_next(PANEL *panel, sip_call_t *cur);
/**
@ -290,7 +290,7 @@ call_list_get_next(PANEL *panel, sip_call_t *cur);
* @param call Start searching from this call
* @return previous matching call or NULL
*/
extern sip_call_t *
sip_call_t *
call_list_get_prev(PANEL *panel, sip_call_t *cur);
/**
@ -300,7 +300,7 @@ call_list_get_prev(PANEL *panel, sip_call_t *cur);
* @param call Start searching from this call
* @return true if the call match display filters
*/
extern bool
bool
call_list_match_dfilter(PANEL *panel, sip_call_t *call);
#endif

View File

@ -60,7 +60,7 @@ struct call_raw_info
*
* @return the allocated ncurses panel
*/
extern PANEL *
PANEL *
call_raw_create();
/**
@ -73,7 +73,7 @@ call_raw_create();
* @param msg New readed message
* @return 0 if the panel needs to be redrawn, -1 otherwise
*/
extern int
int
call_raw_redraw_required(PANEL *panel, sip_msg_t *msg);
/**
@ -85,10 +85,10 @@ call_raw_redraw_required(PANEL *panel, sip_msg_t *msg);
* @param panel Ncurses panel pointer
* @return 0 if the panel has been drawn, -1 otherwise
*/
extern int
int
call_raw_draw(PANEL *panel);
extern int
int
call_raw_print_msg(PANEL *panel, sip_msg_t *msg);
/**
@ -102,7 +102,7 @@ call_raw_print_msg(PANEL *panel, sip_msg_t *msg);
* @param key Pressed keycode
* @return 0 if the function can handle the key, key otherwise
*/
extern int
int
call_raw_handle_key(PANEL *panel, int key);
/**
@ -113,7 +113,7 @@ call_raw_handle_key(PANEL *panel, int key);
*
* @param group Call Group pointer to be set in the internal info struct
*/
extern int
int
call_raw_set_group(sip_call_group_t *group);
/**
@ -124,7 +124,7 @@ call_raw_set_group(sip_call_group_t *group);
*
* @param msg Message pointer to be set in the internal info struct
*/
extern int
int
call_raw_set_msg(sip_msg_t *msg);
#endif

View File

@ -87,7 +87,7 @@ struct filter_info
*
* @return a panel pointer
*/
extern PANEL *
PANEL *
filter_create();
/**
@ -95,7 +95,7 @@ filter_create();
*
* This function do the final cleanups for this panel
*/
extern void
void
filter_destroy();
/**
@ -112,7 +112,7 @@ filter_destroy();
* @param key key code
* @return 0 if the key is handled, keycode otherwise
*/
extern int
int
filter_handle_key(PANEL *panel, int key);
/**
@ -123,7 +123,7 @@ filter_handle_key(PANEL *panel, int key);
*
* @param panel Filter panel pointer
*/
extern void
void
filter_save_options(PANEL *panel);
#endif

View File

@ -380,11 +380,13 @@ int
ui_set_replace(ui_t *original, ui_t *replace)
{
pthread_mutex_lock (&refresh_lock);
if (!original || !replace)
if (!original || !replace) {
pthread_mutex_unlock (&refresh_lock);
return -1;
}
original->replace = replace;
return 0;
pthread_mutex_unlock (&refresh_lock);
return 0;
}
void

View File

@ -110,7 +110,7 @@ enum sngrep_colors
//! Keybinding key color for footers
KEYBINDINGS_KEY,
//! Keybinding key action for footers
KEYBINDINGS_ACTION,
KEYBINDINGS_ACTION
};
/**
@ -144,7 +144,7 @@ enum panel_types
*
* @returns 0 on ncurses initialization success, 1 otherwise
*/
extern int
int
init_interface();
/**
@ -156,7 +156,7 @@ init_interface();
* @param ui UI structure
* @return the ui structure with the panel pointer created
*/
extern ui_t *
ui_t *
ui_create(ui_t *ui);
/**
@ -168,7 +168,7 @@ ui_create(ui_t *ui);
*
* @param ui UI structure
*/
extern void
void
ui_destroy(ui_t *ui);
/**
@ -181,7 +181,7 @@ ui_destroy(ui_t *ui);
* @param ui UI structure
* @return ncurses panel pointer of given UI
*/
extern PANEL *
PANEL *
ui_get_panel(ui_t *ui);
/**
@ -195,7 +195,7 @@ ui_get_panel(ui_t *ui);
* @param msg las readed message
* @return 0 in case of redraw required, -1 otherwise
*/
extern int
int
ui_redraw_required(ui_t *ui, sip_msg_t *msg);
/**
@ -207,7 +207,7 @@ ui_redraw_required(ui_t *ui, sip_msg_t *msg);
* @param ui UI structure
* @return 0 if ui has been drawn, -1 otherwise
*/
extern int
int
ui_draw_panel(ui_t *ui);
/**
@ -219,7 +219,7 @@ ui_draw_panel(ui_t *ui);
*
* @param ui UI structure
*/
extern void
void
ui_help(ui_t *ui);
/**
@ -232,25 +232,26 @@ ui_help(ui_t *ui);
* @param ui UI structure
* @param key keycode sequence of the pressed keys and mods
*/
extern int
int
ui_handle_key(ui_t *ui, int key);
/**
* @brief Find a ui from its pannel pointer
*/
extern ui_t *
ui_t *
ui_find_by_panel(PANEL *panel);
/**
* @brief Find a ui form its panel id
*/
extern ui_t *
ui_t *
ui_find_by_type(int type);
/**
* @brief Toggle color mode on and off
* @param on Pass 0 to turn all black&white
*/
extern void
void
toggle_color(int on);
/**
@ -261,7 +262,7 @@ toggle_color(int on);
*
* @param ui the topmost panel ui structure
*/
extern int
int
wait_for_input(ui_t *ui);
/**
@ -274,7 +275,7 @@ wait_for_input(ui_t *ui);
*
* @param win Window to draw borders on
*/
extern void
void
title_foot_box(WINDOW *win);
/**
@ -287,7 +288,7 @@ title_foot_box(WINDOW *win);
*
* @param msg Last readed message in Online mode
*/
extern void
void
ui_new_msg_refresh(sip_msg_t *msg);
/**
@ -296,7 +297,7 @@ ui_new_msg_refresh(sip_msg_t *msg);
* This function can be handy when we want to destroy one UI element
* and replace it for another in the next ui loop redraw.
*/
extern int
int
ui_set_replace(ui_t *, ui_t*);
/**
@ -306,7 +307,7 @@ ui_set_replace(ui_t *, ui_t*);
* in the last line of the given panel
*
*/
extern void
void
draw_keybindings(PANEL *panel, const char *keybindings[], int count);
/**
@ -315,7 +316,7 @@ draw_keybindings(PANEL *panel, const char *keybindings[], int count);
* This function will draw a vertical scroll in the
* right or left side of the given window
*/
extern void
void
draw_vscrollbar(WINDOW *win, int value, int max, bool left);
#endif // __SNGREP_UI_MANAGER_H

View File

@ -41,11 +41,14 @@
*
* Dialog form has a field array. Following enum represents the
* order this fields are stored in panel info structure.
*
*/
enum save_field_list
{
FLD_SAVE_FILE, FLD_SAVE_ALL, FLD_SAVE_SELECTED, FLD_SAVE_SAVE, FLD_SAVE_CANCEL,
FLD_SAVE_FILE = 1,
FLD_SAVE_ALL,
FLD_SAVE_SELECTED,
FLD_SAVE_CANCEL,
FLD_SAVE_SAVE,
//! Never remove this field id @see save_info
FLD_SAVE_COUNT
};

View File

@ -45,7 +45,10 @@
*/
enum save_raw_field_list
{
FLD_SAVE_RAW_FILE, FLD_SAVE_RAW_SELECTED, FLD_SAVE_RAW_SAVE, FLD_SAVE_RAW_CANCEL,
FLD_SAVE_RAW_FILE = 0,
FLD_SAVE_RAW_SELECTED,
FLD_SAVE_RAW_SAVE,
FLD_SAVE_RAW_CANCEL,
//! Never remove this field id @see save_info
FLD_SAVE_RAW_COUNT
};
@ -78,7 +81,7 @@ struct save_raw_info
*
* @return a panel pointer
*/
extern PANEL *
PANEL *
save_raw_create();
/**
@ -86,7 +89,7 @@ save_raw_create();
*
* This function do the final cleanups for this panel
*/
extern void
void
save_raw_destroy();
/**
@ -103,7 +106,7 @@ save_raw_destroy();
* @param key key code
* @return 0 if the key is handled, keycode otherwise
*/
extern int
int
save_raw_handle_key(PANEL *panel, int key);
/**
@ -113,7 +116,7 @@ save_raw_handle_key(PANEL *panel, int key);
* @param panel Save panel pointer
* @param message Message to be printed in the panel
*/
extern void
void
save_raw_error_message(PANEL *panel, const char *message);
/**
@ -125,7 +128,7 @@ save_raw_error_message(PANEL *panel, const char *message);
* @param panel Save Raw panel pointer
* @param group Group of calls displayed in the raw panel
*/
extern void
void
save_raw_set_group(PANEL *panel, sip_call_group_t *group);
/**
@ -136,7 +139,7 @@ save_raw_set_group(PANEL *panel, sip_call_group_t *group);
*
* @param panel Save panel pointer
*/
extern int
int
save_raw_to_file(PANEL *panel);
#endif