include/compl.h
changeset 89 c190335dbab3
parent 88 9b5c2357fad7
child 90 3102f7def87b
equal deleted inserted replaced
88:9b5c2357fad7 89:c190335dbab3
     1 #ifndef __COMPL_H__
       
     2 #define __COMPL_H__ 1
       
     3 
       
     4 #include <glib.h>
       
     5 
       
     6 #include "config.h"
       
     7 
       
     8 #define COMPL_CMD         (1U<<0)
       
     9 #define COMPL_JID         (1U<<1)
       
    10 #define COMPL_URLJID      (1U<<2)   // Not implemented yet
       
    11 #define COMPL_NAME        (1U<<3)   // Not implemented yet
       
    12 #define COMPL_STATUS      (1U<<4)
       
    13 #define COMPL_FILENAME    (1U<<5)   // Not implemented yet
       
    14 #define COMPL_ROSTER      (1U<<6)
       
    15 #define COMPL_BUFFER      (1U<<7)
       
    16 #define COMPL_GROUP       (1U<<8)
       
    17 #define COMPL_GROUPNAME   (1U<<9)
       
    18 #define COMPL_MULTILINE   (1U<<10)
       
    19 #define COMPL_ROOM        (1U<<11)
       
    20 #define COMPL_RESOURCE    (1U<<12)
       
    21 #define COMPL_AUTH        (1U<<13)
       
    22 #define COMPL_REQUEST     (1U<<14)
       
    23 #define COMPL_EVENTS      (1U<<15)
       
    24 #define COMPL_EVENTSID    (1U<<16)
       
    25 #define COMPL_PGP         (1U<<17)
       
    26 #define COMPL_COLOR       (1U<<18)
       
    27 #define COMPL_OTR         (1U<<19)
       
    28 #define COMPL_OTRPOLICY   (1U<<20)
       
    29 #ifdef MODULES_ENABLE
       
    30 #define COMPL_MAX_BUILTIN (1U<<20)
       
    31 
       
    32 guint compl_new_category (void);
       
    33 void  compl_del_category (guint id);
       
    34 #endif
       
    35 
       
    36 void    compl_add_category_word(guint, const char *command);
       
    37 void    compl_del_category_word(guint categ, const char *word);
       
    38 GSList *compl_get_category_list(guint cat_flags, guint *dynlist);
       
    39 
       
    40 guint   new_completion(char *prefix, GSList *compl_cat);
       
    41 void    done_completion(void);
       
    42 guint   cancel_completion(void);
       
    43 const char *complete(void);
       
    44 
       
    45 #endif /* __COMPL_H__ */
       
    46 
       
    47 /* vim: set expandtab cindent cinoptions=>2\:2(0:  For Vim users... */