Update of /cvsroot/nagios/nagios/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19096/include
Modified Files:
nagios.h.in
Log Message:
First stab at making macros available as env vars - more cleanup to come
Index: nagios.h.in
===================================================================
RCS file: /cvsroot/nagios/nagios/include/nagios.h.in,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** nagios.h.in 31 Oct 2004 04:16:05 -0000 1.23
--- nagios.h.in 2 Nov 2004 05:29:08 -0000 1.24
***************
*** 3,7 ****
* Nagios Main Header File
* Written By: Ethan Galstad (nagios@xxxxxxxxxx)
! * Last Modified: 10-30-2004
*
* This program is free software; you can redistribute it and/or modify
--- 3,7 ----
* Nagios Main Header File
* Written By: Ethan Galstad (nagios@xxxxxxxxxx)
! * Last Modified: 11-01-2004
*
* This program is free software; you can redistribute it and/or modify
***************
*** 46,54 ****
#define MAX_EXECUTIONTIME_LENGTH 10
#define MAX_LATENCY_LENGTH 10
! #define MAX_DURATION_LENGTH 9
#define MAX_DOWNTIME_LENGTH 3
#define MAX_STATEID_LENGTH 2
#define MAX_PERCENTCHANGE_LENGTH 8
#define MACRO_X_COUNT 96 /* size of macro_x[]
array */
--- 46,56 ----
#define MAX_EXECUTIONTIME_LENGTH 10
#define MAX_LATENCY_LENGTH 10
! #define MAX_DURATION_LENGTH 17
#define MAX_DOWNTIME_LENGTH 3
#define MAX_STATEID_LENGTH 2
#define MAX_PERCENTCHANGE_LENGTH 8
+ #define MACRO_ENV_VAR_PREFIX "NAGIOS_"
+
#define MACRO_X_COUNT 96 /* size of macro_x[]
array */
***************
*** 746,749 ****
--- 748,760 ----
char *mmap_fgets(mmapfile *);
char *mmap_fgets_multiline(mmapfile *);
+
+
+ int init_macrox_names(void);
+ int add_macrox_name(int,char *);
+ int free_macrox_names(void);
+ int set_all_macro_environment_vars(int);
+ int set_macrox_environment_vars(int);
+ int set_argv_macro_environment_vars(int);
+ int set_macro_environment_var(char *,char *,int);
#endif
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
|