/[winpt]/trunk/Include/wptRegistry.h
ViewVC logotype

Diff of /trunk/Include/wptRegistry.h

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

revision 179 by twoaday, Fri Feb 24 13:12:26 2006 UTC revision 180 by twoaday, Mon Mar 6 14:41:58 2006 UTC
# Line 1  Line 1 
1  /* wptRegistry.h - Win32 Registry headerfile  /* wptRegistry.h - Win32 Registry headerfile
2   *      Copyright (C) 2000-2005 Timo Schulz   *      Copyright (C) 2000-2006 Timo Schulz
3   *   *
4   * This file is part of WinPT.   * This file is part of WinPT.
5   *   *
# Line 21  Line 21 
21  #ifndef WPT_REGISTRY_H  #ifndef WPT_REGISTRY_H
22  #define WPT_REGISTRY_H  #define WPT_REGISTRY_H
23    
24    #include "wptKeyserver.h"
25    
26  /* Symbolic configuration IDs */  /* Symbolic configuration IDs */
27  enum cfg_t {  enum cfg_t {
28      CFG_INVALID=0,      CFG_INVALID=0,
# Line 69  struct winpt_reg_prefs_s { Line 71  struct winpt_reg_prefs_s {
71      } gpg;      } gpg;
72  };  };
73    
 /* Registry hotkey context. */  
 struct reg_hotkey_s {  
     const char *reg_entry;  
     char key[2];            /* the hotkey as a char ('A'). */  
     int enabled;            /* 1=enable this hotkey. */  
 };  
 typedef struct reg_hotkey_s *reg_hotkey_t;  
   
 extern reg_hotkey_s reg_hotkeys[];  
74  extern winpt_reg_prefs_s reg_prefs;  extern winpt_reg_prefs_s reg_prefs;
75    
 /*-- wptHotkey.cpp --*/  
 void hotkeys_modify (void);  
 void hotkey_disable (reg_hotkey_t rhk);  
 void hotkey_enable (reg_hotkey_t rhk, const char * key);  
   
76  /*-- wptRegistry.cpp --*/  /*-- wptRegistry.cpp --*/
77  void free_reg_prefs (void);  void free_reg_prefs (void);
78  int regist_inst_gnupg (int create_mokey);  int regist_inst_gnupg (int create_mokey);
# Line 104  int set_reg_entry_gpg( const char * key, Line 92  int set_reg_entry_gpg( const char * key,
92  int set_reg_entry_mo( const char * value );  int set_reg_entry_mo( const char * value );
93  char* get_reg_entry_gpg( const char * key );  char* get_reg_entry_gpg( const char * key );
94  char* get_reg_entry_mo( void );  char* get_reg_entry_mo( void );
95  void get_reg_proxy_prefs( char ** host, int * port,  void get_reg_proxy_prefs (keyserver_proxy_t prox);
96                            char ** user, char ** pass );  int set_reg_proxy_prefs (keyserver_proxy_t prox);
 int set_reg_proxy_prefs( const char * host, int port,  
                          const char * user, const char * pass );  
97  int set_reg_entry_keyserver( const char * name, const char * val );  int set_reg_entry_keyserver( const char * name, const char * val );
98  char * get_reg_entry_keyserver( const char * name );  char * get_reg_entry_keyserver( const char * name );
99  int set_reg_winpt_flag (const char *name, int val);  int set_reg_winpt_flag (const char *name, int val);

Legend:
Removed from v.179  
changed lines
  Added in v.180

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26