mcabber/mcabber/caps.h
author Holger Weiß <holger@zedat.fu-berlin.de>
Sun, 26 Jul 2015 22:45:56 +0200
changeset 2308 e8c8665c824e
parent 1999 51f032d5ca22
permissions -rw-r--r--
Let <Enter> (un)fold groups in vi mode When the input line is empty and the user hits the <Enter> key on a roster group name, (un)fold that group even if vi_mode is set to 1. --- mcabber/mcabber/screen.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1600
diff changeset
     1
#ifndef __MCABBER_CAPS_H__
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1600
diff changeset
     2
#define __MCABBER_CAPS_H__ 1
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
     3
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
     4
#include <glib.h>
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
     5
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
     6
void  caps_init(void);
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
     7
void  caps_free(void);
1999
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
     8
void  caps_add(const char *hash);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
     9
void  caps_remove(const char *hash);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    10
void  caps_move_to_local(const char *hash, char *bjid);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    11
int   caps_has_hash(const char *hash, const char *bjid);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    12
void  caps_add_identity(const char *hash,
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    13
                        const char *category,
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    14
                        const char *name,
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    15
                        const char *type,
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    16
                        const char *lang);
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    17
void  caps_set_identity(char *hash,
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    18
                        const char *category,
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    19
                        const char *name,
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    20
                        const char *type);
1999
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    21
void  caps_add_dataform(const char *hash, const char *formtype);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    22
void  caps_add_dataform_field(const char *hash, const char *formtype,
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    23
                              const char *field, const char *value);
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    24
void  caps_add_feature(char *hash, const char *feature);
1999
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    25
int   caps_has_feature(char *hash, char *feature, char *bjid);
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    26
void  caps_foreach_feature(const char *hash, GFunc func, gpointer user_data);
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    27
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    28
char *caps_generate(void);
1999
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    29
gboolean caps_verify(const char *hash, char *function);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    30
void  caps_copy_to_persistent(const char *hash, char *xml);
51f032d5ca22 Add support for XEP-0115 Entity Capabilities, with offline cache
Hermitifier
parents: 1811
diff changeset
    31
gboolean caps_restore_from_persistent(const char *hash);
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    32
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1600
diff changeset
    33
#endif /* __MCABBER_CAPS_H__ */
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents:
diff changeset
    34
1811
e6d355e50d7a Update Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 1668
diff changeset
    35
/* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2:  For Vim users... */