Format code correctly
This commit is contained in:
@@ -507,7 +507,8 @@ cons_show_wins(gboolean unread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_show_wins_attention() {
|
cons_show_wins_attention()
|
||||||
|
{
|
||||||
ProfWin* console = wins_get_console();
|
ProfWin* console = wins_get_console();
|
||||||
cons_show("");
|
cons_show("");
|
||||||
GSList* window_strings = wins_create_summary_attention();
|
GSList* window_strings = wins_create_summary_attention();
|
||||||
@@ -837,12 +838,14 @@ cons_show_disco_items(GSList* items, const char* const jid)
|
|||||||
cons_alert(NULL);
|
cons_alert(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _cons_print_contact_information_item(gpointer data, gpointer user_data)
|
static void
|
||||||
|
_cons_print_contact_information_item(gpointer data, gpointer user_data)
|
||||||
{
|
{
|
||||||
cons_show(" %s", (char*)data);
|
cons_show(" %s", (char*)data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _cons_print_contact_information_hashlist_item(gpointer key, gpointer value, gpointer userdata)
|
static void
|
||||||
|
_cons_print_contact_information_hashlist_item(gpointer key, gpointer value, gpointer userdata)
|
||||||
{
|
{
|
||||||
cons_show(" %s:", (char*)key);
|
cons_show(" %s:", (char*)key);
|
||||||
g_slist_foreach((GSList*)value, _cons_print_contact_information_item, NULL);
|
g_slist_foreach((GSList*)value, _cons_print_contact_information_item, NULL);
|
||||||
|
|||||||
@@ -1009,7 +1009,6 @@ ui_win_has_attention(int index)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char*
|
char*
|
||||||
ui_ask_password(gboolean confirm)
|
ui_ask_password(gboolean confirm)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -811,7 +811,8 @@ _inp_rl_win_next_unread_handler(int count, int key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win_attention_handler(int count, int key) {
|
_inp_rl_win_attention_handler(int count, int key)
|
||||||
|
{
|
||||||
ProfWin* current = wins_get_current();
|
ProfWin* current = wins_get_current();
|
||||||
if (current) {
|
if (current) {
|
||||||
gboolean attention = win_toggle_attention(current);
|
gboolean attention = win_toggle_attention(current);
|
||||||
@@ -826,7 +827,8 @@ _inp_rl_win_attention_handler(int count, int key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win_attention_next_handler(int count, int key) {
|
_inp_rl_win_attention_next_handler(int count, int key)
|
||||||
|
{
|
||||||
ProfWin* window = wins_get_next_attention();
|
ProfWin* window = wins_get_next_attention();
|
||||||
if (window) {
|
if (window) {
|
||||||
ui_focus_win(window);
|
ui_focus_win(window);
|
||||||
@@ -834,7 +836,6 @@ _inp_rl_win_attention_next_handler(int count, int key) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win_pageup_handler(int count, int key)
|
_inp_rl_win_pageup_handler(int count, int key)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1874,7 +1874,6 @@ win_toggle_attention(ProfWin* window)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
win_sub_print(WINDOW* win, char* msg, gboolean newline, gboolean wrap, int indent)
|
win_sub_print(WINDOW* win, char* msg, gboolean newline, gboolean wrap, int indent)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2456,14 +2456,11 @@ _http_upload_response_id_handler(xmpp_stanza_t* const stanza, void* const userda
|
|||||||
const char* header_name = xmpp_stanza_get_attribute(header, STANZA_ATTR_NAME);
|
const char* header_name = xmpp_stanza_get_attribute(header, STANZA_ATTR_NAME);
|
||||||
if (g_strcmp0(header_name, STANZA_HEADER_AUTHORIZATION) == 0) {
|
if (g_strcmp0(header_name, STANZA_HEADER_AUTHORIZATION) == 0) {
|
||||||
upload->authorization = xmpp_stanza_get_text(header);
|
upload->authorization = xmpp_stanza_get_text(header);
|
||||||
}
|
} else if (g_strcmp0(header_name, STANZA_HEADER_COOKIE) == 0) {
|
||||||
else if (g_strcmp0(header_name, STANZA_HEADER_COOKIE) == 0) {
|
|
||||||
upload->cookie = xmpp_stanza_get_text(header);
|
upload->cookie = xmpp_stanza_get_text(header);
|
||||||
}
|
} else if (g_strcmp0(header_name, STANZA_HEADER_EXPIRES) == 0) {
|
||||||
else if (g_strcmp0(header_name, STANZA_HEADER_EXPIRES) == 0) {
|
|
||||||
upload->expires = xmpp_stanza_get_text(header);
|
upload->expires = xmpp_stanza_get_text(header);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
log_warning("[HTTP upload] unknown header: %s", header_name);
|
log_warning("[HTTP upload] unknown header: %s", header_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -644,7 +644,6 @@ _omemo_devicelist_configure_result(xmpp_stanza_t* const stanza, void* const user
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_omemo_bundle_publish_result(xmpp_stanza_t* const stanza, void* const userdata)
|
_omemo_bundle_publish_result(xmpp_stanza_t* const stanza, void* const userdata)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1966,7 +1966,6 @@ stanza_attach_publish_options_va(xmpp_ctx_t* const ctx, xmpp_stanza_t* const iq,
|
|||||||
}
|
}
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
|
|
||||||
xmpp_stanza_release(form_type_value_text);
|
xmpp_stanza_release(form_type_value_text);
|
||||||
xmpp_stanza_release(form_type_value);
|
xmpp_stanza_release(form_type_value);
|
||||||
xmpp_stanza_release(form_type);
|
xmpp_stanza_release(form_type);
|
||||||
@@ -1980,7 +1979,6 @@ stanza_attach_publish_options(xmpp_ctx_t* const ctx, xmpp_stanza_t* const iq, co
|
|||||||
stanza_attach_publish_options_va(ctx, iq, 2, option, value);
|
stanza_attach_publish_options_va(ctx, iq, 2, option, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
stanza_attach_priority(xmpp_ctx_t* const ctx, xmpp_stanza_t* const presence, const int pri)
|
stanza_attach_priority(xmpp_ctx_t* const ctx, xmpp_stanza_t* const presence, const int pri)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res)
|
|||||||
void omemo_free(void* a){};
|
void omemo_free(void* a){};
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
omemo_device_id() {
|
omemo_device_id()
|
||||||
|
{
|
||||||
return 123;
|
return 123;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,17 +211,20 @@ ui_win_unread(int index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
ui_win_has_attention(int index) {
|
ui_win_has_attention(int index)
|
||||||
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
win_has_attention(ProfWin* window){
|
win_has_attention(ProfWin* window)
|
||||||
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
win_toggle_attention(ProfWin* window){
|
win_toggle_attention(ProfWin* window)
|
||||||
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
char*
|
char*
|
||||||
|
|||||||
Reference in New Issue
Block a user