mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Applied coding style to src/ui/console.c
This commit is contained in:
parent
559ff72cf5
commit
1096603234
@ -71,14 +71,14 @@ cons_show_time(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_word(const char * const word)
|
cons_show_word(const char *const word)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
win_print(console, '-', 0, NULL, NO_DATE | NO_EOL, 0, "", word);
|
win_print(console, '-', 0, NULL, NO_DATE | NO_EOL, 0, "", word);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_debug(const char * const msg, ...)
|
cons_debug(const char *const msg, ...)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
if (strcmp(PACKAGE_STATUS, "development") == 0) {
|
if (strcmp(PACKAGE_STATUS, "development") == 0) {
|
||||||
@ -93,7 +93,7 @@ cons_debug(const char * const msg, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show(const char * const msg, ...)
|
cons_show(const char *const msg, ...)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
va_list arg;
|
va_list arg;
|
||||||
@ -106,7 +106,7 @@ cons_show(const char * const msg, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_padded(int pad, const char * const msg, ...)
|
cons_show_padded(int pad, const char *const msg, ...)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
va_list arg;
|
va_list arg;
|
||||||
@ -162,7 +162,7 @@ cons_show_help(Command *command)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_bad_cmd_usage(const char * const cmd)
|
cons_bad_cmd_usage(const char *const cmd)
|
||||||
{
|
{
|
||||||
GString *msg = g_string_new("");
|
GString *msg = g_string_new("");
|
||||||
g_string_printf(msg, "Invalid usage, see '/help %s' for details.", &cmd[1]);
|
g_string_printf(msg, "Invalid usage, see '/help %s' for details.", &cmd[1]);
|
||||||
@ -174,7 +174,7 @@ cons_bad_cmd_usage(const char * const cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_error(const char * const msg, ...)
|
cons_show_error(const char *const msg, ...)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
va_list arg;
|
va_list arg;
|
||||||
@ -189,7 +189,7 @@ cons_show_error(const char * const msg, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_typing(const char * const barejid)
|
cons_show_typing(const char *const barejid)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
const char * display_usr = NULL;
|
const char * display_usr = NULL;
|
||||||
@ -209,7 +209,7 @@ cons_show_typing(const char * const barejid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_incoming_message(const char * const short_from, const int win_index)
|
cons_show_incoming_message(const char *const short_from, const int win_index)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
|
|
||||||
@ -355,7 +355,7 @@ cons_show_info(PContact pcontact)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_caps(const char * const fulljid, resource_presence_t presence)
|
cons_show_caps(const char *const fulljid, resource_presence_t presence)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
cons_show("");
|
cons_show("");
|
||||||
@ -466,7 +466,7 @@ cons_show_sent_subs(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_room_list(GSList *rooms, const char * const conference_node)
|
cons_show_room_list(GSList *rooms, const char *const conference_node)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
if (rooms && (g_slist_length(rooms) > 0)) {
|
if (rooms && (g_slist_length(rooms) > 0)) {
|
||||||
@ -574,7 +574,7 @@ cons_show_disco_info(const char *jid, GSList *identities, GSList *features)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_disco_items(GSList *items, const char * const jid)
|
cons_show_disco_items(GSList *items, const char *const jid)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
if (items && (g_slist_length(items) > 0)) {
|
if (items && (g_slist_length(items) > 0)) {
|
||||||
@ -598,7 +598,7 @@ cons_show_disco_items(GSList *items, const char * const jid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_status(const char * const barejid)
|
cons_show_status(const char *const barejid)
|
||||||
{
|
{
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
PContact pcontact = roster_get_contact(barejid);
|
PContact pcontact = roster_get_contact(barejid);
|
||||||
@ -613,8 +613,8 @@ cons_show_status(const char * const barejid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_room_invite(const char * const invitor, const char * const room,
|
cons_show_room_invite(const char *const invitor, const char * const room,
|
||||||
const char * const reason)
|
const char *const reason)
|
||||||
{
|
{
|
||||||
char *display_from = NULL;
|
char *display_from = NULL;
|
||||||
PContact contact = roster_get_contact(invitor);
|
PContact contact = roster_get_contact(invitor);
|
||||||
@ -1673,7 +1673,7 @@ cons_navigation_help(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_roster_group(const char * const group, GSList *list)
|
cons_show_roster_group(const char *const group, GSList *list)
|
||||||
{
|
{
|
||||||
cons_show("");
|
cons_show("");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user