Changeset 659

Show
Ignore:
Timestamp:
10/08/06 17:05:13 (2 years ago)
Author:
common
Message:

nepenthes

  • submit-postgres, adjust the module to provide a SQLCallback when creating the SQLHandler for a connection, and provide the methods for connect/disconnect of the SQLHandler, this might be handy for spooling of files
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/submit-postgres/submit-postgres.cpp

    r649 r659  
    123123                                                                                                                           m_Pass, 
    124124                                                                                                                           m_DB, 
    125                                                                                                                            m_Options); 
     125                                                                                                                           m_Options, 
     126                                                                                                                          this); 
    126127 
    127128        if (m_SQLHandler == NULL) 
     
    314315 
    315316 
     317void SubmitPostgres::sqlConnected() 
     318{ 
     319        logPF(); 
     320} 
     321 
     322void SubmitPostgres::sqlDisconnected() 
     323{ 
     324        logPF(); 
     325} 
     326 
    316327extern "C" int32_t module_init(int32_t version, Module **module, Nepenthes *nepenthes) 
    317328{ 
  • nepenthes/trunk/modules/submit-postgres/submit-postgres.hpp

    r607 r659  
    158158                bool sqlFailure(SQLResult *result); 
    159159 
     160                void sqlConnected(); 
     161                void sqlDisconnected(); 
     162 
    160163        private: 
    161164                SQLHandler                      *m_SQLHandler; 
     
    173176 
    174177extern nepenthes::Nepenthes *g_Nepenthes; 
    175