/[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.9 by martinp, Tue Feb 11 21:27:40 2003 UTC revision 1.10 by martinp, Fri Jul 4 13:13:32 2003 UTC
# Line 78  void *create_default() { Line 78  void *create_default() {
78    
79    if(mydefault == NULL) {    if(mydefault == NULL) {
80      static const char *name= "DEFAULT";      static const char *name= "DEFAULT";
81      mydefault= NEW(mydefault);      NEW(mydefault);
82      mydefault->name= name;      mydefault->name= name;
83      mydefault->check= check_default;      mydefault->check= check_default;
84    }    }
# Line 92  void *create_http() { Line 92  void *create_http() {
92    
93    if(myhttp == NULL) {    if(myhttp == NULL) {
94      static const char *name= "HTTP";      static const char *name= "HTTP";
95      myhttp= NEW(myhttp);      NEW(myhttp);
96      myhttp->name= name;      myhttp->name= name;
97      myhttp->check= check_http;      myhttp->check= check_http;
98    }    }
# Line 106  void *create_ftp() { Line 106  void *create_ftp() {
106    
107    if(myftp == NULL) {    if(myftp == NULL) {
108      static const char *name= "FTP";      static const char *name= "FTP";
109      myftp= NEW(myftp);      NEW(myftp);
110      myftp->name= name;      myftp->name= name;
111      myftp->check= check_ftp;      myftp->check= check_ftp;
112    }    }
# Line 120  void *create_smtp() { Line 120  void *create_smtp() {
120    
121    if(mysmtp == NULL) {    if(mysmtp == NULL) {
122      static const char *name= "SMTP";      static const char *name= "SMTP";
123      mysmtp= NEW(mysmtp);      NEW(mysmtp);
124      mysmtp->name= name;      mysmtp->name= name;
125      mysmtp->check= check_smtp;      mysmtp->check= check_smtp;
126    }    }
# Line 134  void *create_pop() { Line 134  void *create_pop() {
134    
135    if(mypop == NULL) {    if(mypop == NULL) {
136      static const char *name= "POP";      static const char *name= "POP";
137      mypop= NEW(mypop);      NEW(mypop);
138      mypop->name= name;      mypop->name= name;
139      mypop->check= check_pop;      mypop->check= check_pop;
140    }    }
# Line 148  void *create_imap() { Line 148  void *create_imap() {
148    
149    if(myimap == NULL) {    if(myimap == NULL) {
150      static const char *name= "IMAP";      static const char *name= "IMAP";
151      myimap= NEW(myimap);      NEW(myimap);
152      myimap->name= name;      myimap->name= name;
153      myimap->check= check_imap;      myimap->check= check_imap;
154    }    }
# Line 162  void *create_nntp() { Line 162  void *create_nntp() {
162    
163    if(mynntp == NULL) {    if(mynntp == NULL) {
164      static const char *name= "NNTP";      static const char *name= "NNTP";
165      mynntp= NEW(mynntp);      NEW(mynntp);
166      mynntp->name= name;      mynntp->name= name;
167      mynntp->check= check_nntp;      mynntp->check= check_nntp;
168    }    }
# Line 176  void *create_ssh() { Line 176  void *create_ssh() {
176        
177    if(myssh == NULL) {    if(myssh == NULL) {
178      static const char *name= "SSH";      static const char *name= "SSH";
179      myssh= NEW(myssh);      NEW(myssh);
180      myssh->name= name;      myssh->name= name;
181      myssh->check= check_ssh;      myssh->check= check_ssh;
182    }    }
# Line 190  void *create_dwp() { Line 190  void *create_dwp() {
190        
191    if(mydwp == NULL) {    if(mydwp == NULL) {
192      static const char *name= "DWP";      static const char *name= "DWP";
193      mydwp= NEW(mydwp);      NEW(mydwp);
194      mydwp->name= name;      mydwp->name= name;
195      mydwp->check= check_dwp;      mydwp->check= check_dwp;
196    }    }
# Line 204  void *create_ldap2() { Line 204  void *create_ldap2() {
204        
205    if(myldap2 == NULL) {    if(myldap2 == NULL) {
206      static const char *name= "LDAP2";      static const char *name= "LDAP2";
207      myldap2= NEW(myldap2);      NEW(myldap2);
208      myldap2->name= name;      myldap2->name= name;
209      myldap2->check= check_ldap2;      myldap2->check= check_ldap2;
210    }    }
# Line 218  void *create_ldap3() { Line 218  void *create_ldap3() {
218        
219    if(myldap3 == NULL) {    if(myldap3 == NULL) {
220      static const char *name= "LDAP3";      static const char *name= "LDAP3";
221      myldap3= NEW(myldap3);      NEW(myldap3);
222      myldap3->name= name;      myldap3->name= name;
223      myldap3->check= check_ldap3;      myldap3->check= check_ldap3;
224    }    }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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