ccnr_msg.h

Go to the documentation of this file.
00001 /**
00002  * @file ccnr_msg.h
00003  * 
00004  * Part of ccnr - CCNx Repository Daemon.
00005  *
00006  */
00007 
00008 /*
00009  * Copyright (C) 2011 Palo Alto Research Center, Inc.
00010  *
00011  * This work is free software; you can redistribute it and/or modify it under
00012  * the terms of the GNU General Public License version 2 as published by the
00013  * Free Software Foundation.
00014  * This work is distributed in the hope that it will be useful, but WITHOUT ANY
00015  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
00016  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
00017  * for more details. You should have received a copy of the GNU General Public
00018  * License along with this program; if not, write to the
00019  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA 02110-1301, USA.
00021  */
00022  
00023 #ifndef CCNR_MSG_DEFINED
00024 #define CCNR_MSG_DEFINED
00025 
00026 #include "ccnr_private.h"
00027 
00028 /**
00029  * Levels for deciding whether or not to log.
00030  */
00031 #define CCNL_NONE       0   /**< No logging at all */
00032 #define CCNL_SEVERE     3   /**< Severe errors */
00033 #define CCNL_ERROR      5   /**< Configuration errors */
00034 #define CCNL_WARNING    7   /**< Something might be wrong */
00035 #define CCNL_INFO       9   /**< Low-volume informational */
00036 #define CCNL_FINE      11   /**< Debugging */
00037 #define CCNL_FINER     13   /**< More debugging */
00038 #define CCNL_FINEST    15   /**< MORE DEBUGGING YET */
00039 
00040 int ccnr_msg_level_from_string(const char *s);
00041 
00042 extern const char *ccnr_usage_message;
00043 void ccnr_debug_ccnb(struct ccnr_handle *h,
00044                      int lineno,
00045                      const char *msg,
00046                      struct fdholder *fdholder,
00047                      const unsigned char *ccnb,
00048                      size_t ccnb_size);
00049 void ccnr_msg(struct ccnr_handle *h, const char *fmt, ...);
00050 
00051 #endif

Generated on Thu Feb 16 00:43:58 2012 for Content-Centric Networking in C by  doxygen 1.5.6