download clog.h
Language: C
License: GPL
Copyright: (C) 2001 Grub, Inc. *
LOC: 25
Project Info
grub.org - Distributed Internet Crawler(grub)
Server: SourceForge
Type: cvs
...ge\g\grub\grub\client\util\
   alt_ftw.c
   alt_ftw.h
   bin_test_util.dsp
   clog.cpp
   clog.h
   ConfigFileInfo.h
   crc.h
   crc_32.c
   crc_32.cpp
   crc_32.h
   crc_test.c
   crc_test.cpp
   crc32.c
   crc32.h
   dbl_list.c
   dbl_list.h
   delay.cpp
   delay.h
   diagnose.h
   fc32.c
   file_data.c
   file_data.h
   getopt.c
   getopt.h
   grubconf.c
   grubconf.h
   GrubExp.cpp
   GrubExp.h
   Gui.cpp
   Gui.h
   intl.h
   lib_util.dsp
   lockfile.cpp
   lockfile.h
   Makefile.am
   parsecfg.c
   parsecfg.h
   platform.h
   rmfiles.c
   rmfiles.h
   ServerSettings.cpp
   ServerSettings.h
   sniptype.h
   StatusInterface.cpp
   StatusInterface.h
   strip_url.c
   strip_url.h
   test_util.cpp

/**************************************************************************
 *                                                                        *
 *   Copyright (C) 2001 Grub, Inc.                                        *
 *                                                                        *
 *   This program is free software; you can redistribute it and/or modify *
 *   it under the terms of the GNU General Public License as published by *
 *   the Free Software Foundation; either version 1, or (at your option)  *
 *   any later version.                                                   *
 *                                                                        *
 *   This program is distributed in the hope that it will be useful,      *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of       *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
 *   GNU General Public License for more details.                         *
 *                                                                        *
 *   You should have received a copy of the GNU General Public License    *
 *   along with this program; if not, write to the Free Software          *
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.            *
 *                                                                        *
 **************************************************************************/
/* 
 * Project: 	GRUB-CLIENT <http://www.grub.org>
 * Module:	clog
 * Author:	Ledio Ago
 * Date:	March 7, 2002
 * Files: 	CLog.cpp CLog.h
 * Description: This module will initilize the GrubCLog module used to
 *		to track down the client. 
 */

#ifndef _clog_H_
#define _clog_H_

#ifdef __cplusplus
#include <GrubCLog.h>

#define CLog grub_clog->Logprintf

extern GrubCLog *grub_clog;
#else  /* __cplusplus */
/* also defined in gc_log.h */
#define GCLOG_TRACE 1
#define GCLOG_DEBUG 2
#define GCLOG_INFO  4
#define GCLOG_ERR   8
#define GCLOG_ALERT 16 
#define GCLOG_CRIT  32
#define GCLOG_EMERG 64
#endif  /* ! __cplusplus */

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Function:	clog_init
 * Description: It will initilize GrubCLog object used to log errors
 *		or just logs to trace down programs.
 */
void clog_init( char *file_name );

/*
 * Function:	clog_uninit
 * Description:	It will delete the GrubCLog object.
 */
void clog_uninit();

void CLogC(unsigned int level, const char *info );
 
#ifdef __cplusplus
}
#endif

#endif

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us