easydbus-macro.h

Go to the documentation of this file.
00001 /*
00002  EasyDbus: DBUS Binding Library.
00003  Copyright (C) 2007 - 2008  Daniele Rondina aka ge@@ru, geaaru@gmail.com 
00004 
00005  This program is free software; you can redistribute it and/or
00006  modify it under the terms of the GNU General Public License
00007  as published by the Free Software Foundation; either version 2
00008  of the License, or (at your option) any later version.
00009 
00010  This program is distributed in the hope that it will be useful,
00011  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  GNU General Public License for more details.
00014 
00015  You should have received a copy of the GNU General Public License
00016  along with this program; if not, write to the Free Software
00017  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 
00019  Filename:  easydbus-macro.h
00020  
00021  Description:  
00022  
00023  Version:  1.0
00024  Created:  02/28/08 11:49:08 CET
00025  Revision:  none
00026  
00027   Author:   Daniele Rondina aka ge@@ru (geaaru@gmail.com) 
00028   License:  GPL 2.0
00029 */
00030 
00031 #ifndef EASYDBUS_MACRO_H
00032 #define EASYDBYS_MACRO_H
00033 
00034 #include <string.h>
00035 
00036 // This macro is born because on N800 was a
00037 // problem with strcpy on libc (on ARM)
00038 #define EASYDBUS_MEMCOPY(dest, src, len) \
00039    { \
00040       memset (dest, 0, len); \
00041       memcpy (dest, src, len); \
00042    }
00043 
00044 #endif
00045 
00046 // vim: ts=3 shiftwidth=3 expandtab

Generated on Thu Apr 10 10:00:18 2008 for EasyDbus-0.2 by  doxygen 1.5.4