/[monit]/monit/protocols/protocol.c
ViewVC logotype

Diff of /monit/protocols/protocol.c

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

revision 1.7 by martinp, Fri Jan 3 20:15:19 2003 UTC revision 1.8 by martinp, Thu Feb 6 23:32:13 2003 UTC
# Line 38  static Protocol_T myimap= NULL; Line 38  static Protocol_T myimap= NULL;
38  static Protocol_T mynntp= NULL;  static Protocol_T mynntp= NULL;
39  static Protocol_T myssh= NULL;  static Protocol_T myssh= NULL;
40  static Protocol_T mydwp= NULL;  static Protocol_T mydwp= NULL;
41    static Protocol_T myldap2= NULL;
42    static Protocol_T myldap3= NULL;
43    
44    
45  /**  /**
# Line 66  void gc_protocols() { Line 68  void gc_protocols() {
68    free(mynntp);    mynntp= NULL;    free(mynntp);    mynntp= NULL;
69    free(myssh);     myssh= NULL;    free(myssh);     myssh= NULL;
70    free(mydwp);     mydwp= NULL;    free(mydwp);     mydwp= NULL;
71      free(myldap2);   myldap2= NULL;
72      free(myldap3);   myldap3= NULL;
73    
74  }  }
75    
# Line 195  void *create_dwp() { Line 199  void *create_dwp() {
199    
200  }  }
201    
202    
203    void *create_ldap2() {
204      
205      if(myldap2 == NULL) {
206        static const char *name= "LDAP2";
207        myldap2= NEW(myldap2);
208        myldap2->name= name;
209        myldap2->check= check_ldap2;
210      }
211      
212      return myldap2;
213    
214    }
215    
216    
217    void *create_ldap3() {
218      
219      if(myldap3 == NULL) {
220        static const char *name= "LDAP3";
221        myldap3= NEW(myldap3);
222        myldap3->name= name;
223        myldap3->check= check_ldap3;
224      }
225      
226      return myldap3;
227    
228    }
229    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26