00001 /********************************************************************\ 00002 * kvp-util-p.h -- misc odd-job kvp utils (private file) * 00003 * * 00004 * This program is free software; you can redistribute it and/or * 00005 * modify it under the terms of the GNU General Public License as * 00006 * published by the Free Software Foundation; either version 2 of * 00007 * the License, or (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License* 00015 * along with this program; if not, contact: * 00016 * * 00017 * Free Software Foundation Voice: +1-617-542-5942 * 00018 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00019 * Boston, MA 02110-1301, USA gnu@gnu.org * 00020 * * 00021 \********************************************************************/ 00022 00023 #ifndef XACC_KVP_UTIL_P_H 00024 #define XACC_KVP_UTIL_P_H 00025 00026 #include "guid.h" 00027 #include "kvp_frame.h" 00028 00071 KvpFrame * gnc_kvp_bag_add (KvpFrame *kvp_root, const char *path, time_t secs, 00072 const char *first_name, ...); 00073 00074 00079 void gnc_kvp_bag_merge (KvpFrame *kvp_into, const char *intopath, 00080 KvpFrame *kvp_from, const char *frompath); 00081 00090 KvpFrame * gnc_kvp_bag_find_by_guid (KvpFrame *root, const char * path, 00091 const char *guid_name, GUID *desired_guid); 00092 00093 00101 void gnc_kvp_bag_remove_frame (KvpFrame *root, const char *path, 00102 KvpFrame *fr); 00103 00106 #endif /* XACC_KVP_UTIL_P_H */