00001 /********************************************************************\ 00002 * duifieldmap.h -- Map one source to target, with a filter in the middle 00003 * Copyright (C) 2003 Linas Vepstas <linas@linas.org> * 00004 * http://dwi.sourceforge.net * 00005 * * 00006 * This library is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU Lesser General Public * 00008 * License as published by the Free Software Foundation; either * 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * * 00011 * This library is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU Lesser General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU Lesser General Public * 00017 * License along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * 00021 * Boston, MA 02111-1307, USA gnu@gnu.org * 00022 \********************************************************************/ 00037 #ifndef DUI_FIELDMAP_H 00038 #define DUI_FIELDMAP_H 00039 #include "config.h" 00040 00041 #include "duifield.h" 00042 #include "duifilter.h" 00043 00044 typedef struct DuiFieldMap_s DuiFieldMap; 00045 00046 struct DuiFieldMap_s 00047 { 00049 DuiField source; 00050 00053 char * filtername; 00054 DuiFilter *filter; 00055 00057 DuiField target; 00058 }; 00059 00060 DuiFieldMap * dui_field_map_new (void); 00061 void dui_field_map_destroy (DuiFieldMap *fm); 00062 00064 void dui_field_map_transfer_data (DuiFieldMap *fm); 00065 00067 const char * dui_field_map_get_value (DuiFieldMap *fm); 00068 00070 void dui_field_map_resolve (DuiFieldMap *fm); 00071 00075 #endif /* DUI_FIELDMAP_H */
1.5.5