logo       

nagios/include nagios.h.in,1.23,1.24: msg#00001

Subject: nagios/include nagios.h.in,1.23,1.24
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe