Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

property.h

00001 /***************************************************************************
00002  * CVSID: $Id: property.h,v 1.3 2004/04/20 20:54:15 joe Exp $
00003  *
00004  * property.c : HalProperty methods
00005  *
00006  * Copyright (C) 2003 David Zeuthen, <david@fubar.dk>
00007  * Copyright (C) 2004 Novell, Inc.
00008  *
00009  * Licensed under the Academic Free License version 2.0
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  **************************************************************************/
00026 
00027 #ifndef PROPERTY_H
00028 #define PROPERTY_H
00029 
00030 #include <dbus/dbus.h>
00031 
00032 typedef struct _HalProperty HalProperty;
00033 
00034 void          hal_property_free          (HalProperty  *prop);
00035 
00036 HalProperty *hal_property_new_string     (const char   *key,
00037                       const char   *value);
00038 HalProperty *hal_property_new_int        (const char   *key,
00039                       dbus_int32_t  value);
00040 HalProperty *hal_property_new_bool       (const char   *key,
00041                       dbus_bool_t   value);
00042 HalProperty *hal_property_new_double     (const char   *key,
00043                       double        value);
00044 
00045 const char   *hal_property_get_key       (HalProperty  *prop);
00046 int           hal_property_get_type      (HalProperty  *prop);
00047 char         *hal_property_to_string     (HalProperty  *prop);
00048 
00049 const char   *hal_property_get_string    (HalProperty  *prop);
00050 dbus_int32_t  hal_property_get_int       (HalProperty  *prop);
00051 dbus_bool_t   hal_property_get_bool      (HalProperty  *prop);
00052 double        hal_property_get_double    (HalProperty  *prop);
00053 
00054 void          hal_property_set_string    (HalProperty  *prop,
00055                       const char   *value);
00056 void          hal_property_set_int       (HalProperty  *prop,
00057                       dbus_int32_t  value);
00058 void          hal_property_set_bool      (HalProperty  *prop,
00059                       dbus_bool_t   value);
00060 void          hal_property_set_double    (HalProperty  *prop,
00061                       double        value);
00062 
00063 #endif /* PROPERTY_H */

Generated on Sat Apr 24 19:57:45 2004 for HAL by doxygen 1.3.6-20040222