elem.h

Go to the documentation of this file.
00001 /*
00002  EasyDbus: DBus Binding Library
00003  Copyright (C) 2007  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:  elem.h
00020  
00021   Description:  
00022  
00023   Version:  0.1
00024   Created:  10/09/07 21:07:40 CEST
00025   Revision:  none
00026  
00027   Author:   Daniele Rondina aka Ge@@ru (geaaru@gmail.com) 
00028   License:  GPL 2.0
00029 */
00030 
00031 #ifndef EASYDBUS_ELEM_H
00032 #define EASYDBUS_ELEM_H
00033 
00034 /* Functions for manage EasyDbus_elem */
00035 
00036 // recover string from a string element
00037 const char *
00038 easydbus_elem_get_string (const EasyDbus_elem *);
00039 
00040 // recover byte from a byte element
00041 int 
00042 easydbus_elem_get_byte (const EasyDbus_elem *, char *);
00043 
00044 // recover boolean from a boolean element
00045 char 
00046 easydbus_elem_get_boolean (const EasyDbus_elem *);
00047 
00048 // recover double value from a double element.
00049 int 
00050 easydbus_elem_get_double (const EasyDbus_elem *, double *);
00051 
00052 // recover i64 value from a i164 element.
00053 int 
00054 easydbus_elem_get_i64 (const EasyDbus_elem *, 
00055                        long long *);
00056 
00057 // recover ui64 value from a ui164 element.
00058 int 
00059 easydbus_elem_get_ui64 (const EasyDbus_elem *,
00060                         unsigned long long *);
00061 
00062 // recover i32 value from a i32 element
00063 int 
00064 easydbus_elem_get_i32 (const EasyDbus_elem *, int *);
00065 
00066 // recover ui32 value from a ui32 element
00067 int 
00068 easydbus_elem_get_ui32 (const EasyDbus_elem *, 
00069                         unsigned int *);
00070 
00071 // recover i16 value from a i16 element
00072 int 
00073 easydbus_elem_get_i16 (const EasyDbus_elem * elem, 
00074                        short *);
00075 
00076 // recover ui16 value from a ui16 element
00077 int 
00078 easydbus_elem_get_ui16 (const EasyDbus_elem * elem,
00079                         unsigned short *);
00080 
00081 // recover object path string from a object path element
00082 const char *
00083 easydbus_elem_get_obj_path (const EasyDbus_elem *);
00084 
00085 // recover signature string from a element object 
00086 const char *
00087 easydbus_elem_get_signature (const EasyDbus_elem *);
00088 
00089 // get type of element object
00090 inline enum el_type 
00091 easydbus_elem_get_type (const EasyDbus_elem *);
00092 
00093 // get n-elements from element object passed in input
00094 const EasyDbus_elem *
00095 easydbus_elem_get_element (const EasyDbus_elem *,
00096                            unsigned int);
00097 
00098 // get next element
00099 inline const EasyDbus_elem *
00100 easydbus_elem_get_next (const EasyDbus_elem *);
00101 
00102 // get container element 
00103 const EasyDbus_container *
00104 easydbus_elem_get_container (const EasyDbus_elem *);
00105 
00106 #endif
00107 // vim: ts=3 shiftwidth=3 expandtab

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