Utils.hpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                     _     _   _   _     __     _                     |
00004 |                    | |   | | | \_/ |   /  \   | |                    |
00005 |                    | |   | | | |_| |  / /\ \  | |                    |
00006 |                    | |__ | | | | | | / ____ \ | |__                  |
00007 |                    |____||_| |_| |_|/ /    \ \|____|                 |
00008 |                                                                      |
00009 |                             apparmor-notifications library           |
00010 |                                                                      |
00011 |                                         (C) SUSE Linux Products GmbH |
00012 \----------------------------------------------------------------------/
00013 
00014   File:       Utils.hpp
00015 
00016   Author:     Matt Barringer <mbarringer@suse.de>
00017   Maintainer: Matt Barringer <mbarringer@suse.de>
00018 
00019 /-*/
00027 #ifndef  UTILS_HPP
00028 #define  UTILS_HPP
00029 #include <limal/apparmor-notifications/config.h>
00030 #include <limal/Logger.hpp>
00031 
00032 #include <libintl.h>
00033 
00034 
00035 // -------------------------------------------------------------------
00039 #define LOGIT(level,message)    \
00040         LIMAL_SLOG(limal::Logger("apparmor-notifications"), level, message)
00041 
00042 
00043 // -------------------------------------------------------------------
00047 #define i18n_domain     "apparmor-notifications"
00048 
00049 
00050 // -------------------------------------------------------------------
00054 #define __(MSG)  dgettext( i18n_domain, (MSG) )
00055 
00056 
00057 // -------------------------------------------------------------------
00058 #endif // UTILS_HPP
00059 // vim: set ts=8 sts=8 sw=8 ai noet:

Generated on Sat Sep 22 00:45:04 2007 by  doxygen 1.5.3