/[gpgoe]/trunk/src/GPGOE.h
ViewVC logotype

Diff of /trunk/src/GPGOE.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by twoaday, Thu Apr 13 07:41:30 2006 UTC revision 19 by twoaday, Sun Jun 4 10:12:47 2006 UTC
# Line 21  Line 21 
21  #ifndef GPGOE_H  #ifndef GPGOE_H
22  #define GPGOE_H  #define GPGOE_H
23    
24    /* Macros to support a separate section for variables. */
25    #ifdef __GNUC__
26    #define ATTR_SEC __attribute__((section (".SHARDAT"), shared))
27    #else
28    #define ATTR_SEC
29    #endif
30    
31    #define HASH_BUCKETS 3
32    
33  /* gettext support. */  /* gettext support. */
34  const char *gettext (const char *msgid);  const char *gettext (const char *msgid);
35  #define _(X) gettext ((X))  #define _(X) gettext ((X))
# Line 58  do { \ Line 67  do { \
67  #define ID_OF_SAVE_FILE      1148  #define ID_OF_SAVE_FILE      1148
68    
69    
70    /* Supported plug-in modes. */
71    enum gpgoe_mode_t {
72        GPGOE_MODE_NORMAL     = 0,
73        GPGOE_MODE_PLAINREPLY = 1,     /* decrypt mails before a reply. */
74        GPGOE_MODE_CACHEPASS  = 2,      /* cache passphrase. */
75    };
76    
77  /* Context for the recipient list. */  /* Context for the recipient list. */
78  struct recip_list_s {  struct recip_list_s {
79      struct recip_list_s *next;      struct recip_list_s *next;
# Line 91  struct viewer_ctx_s { Line 107  struct viewer_ctx_s {
107  typedef struct viewer_ctx_s *viewer_ctx_t;  typedef struct viewer_ctx_s *viewer_ctx_t;
108    
109    
110    struct verify_ctx_s {
111        gpgme_signature_t sig;
112        gpgme_data_t text;
113    };
114    typedef struct verify_ctx_s *verify_ctx_t;
115    
116  /*-- GPGOE.c --*/  /*-- GPGOE.c --*/
117  /*EXPORT*/ int gpgoe_initialize (void);  /*EXPORT*/ int gpgoe_initialize (void);
118  /*EXPORT*/ int gpgoe_remove (void);  /*EXPORT*/ int gpgoe_remove (void);
119    /*EXPORT*/ void gpgoe_set_active_modes (int mode);
120    /*EXPORT*/ int gpgoe_get_active_modes (void);
121    
122  /*-- OEProc.c --*/  /*-- OEProc.c --*/
123  extern plugin_ctx_t oe_plug;  extern plugin_ctx_t oe_plug;
# Line 152  gpgme_error_t passphrase_cb (void *hook, Line 176  gpgme_error_t passphrase_cb (void *hook,
176  void free_pass_cb (pass_cb_t cb);  void free_pass_cb (pass_cb_t cb);
177  pass_cb_t new_pass_cb (HWND main);  pass_cb_t new_pass_cb (HWND main);
178  int pass_cb_cancelled (pass_cb_t cb);  int pass_cb_cancelled (pass_cb_t cb);
179  void free_pass_cache (void);  void reset_pass_cache (void);
180    
181  /*-- OENLS.c --*/  /*-- OENLS.c --*/
182  int setup_gettext (void);  int setup_gettext (void);

Legend:
Removed from v.18  
changed lines
  Added in v.19

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26