aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/mesgui
ModeNameSize
-rw-r--r--Makefile1318logstatsplainblame
-rw-r--r--distinfo186logstatsplainblame
-rw-r--r--pkg-descr186logstatsplainblame
-rw-r--r--pkg-plist69logstatsplainblame
pan> * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libxml/tree.h> #include <libxml/parser.h> #include <libxml/xmlmemory.h> #include "e-folder-map.h" #define d(x) x static gboolean is_type_folder (const char *metadata, const char *search_type) { xmlNodePtr node; xmlDocPtr doc; char *type; if (!(doc = xmlParseFile (metadata))) { g_warning ("Cannot parse `%s'", metadata); return FALSE; } if (!(node = xmlDocGetRootElement (doc))) { g_warning ("`%s' corrupt: document contains no root node", metadata); xmlFreeDoc (doc); return FALSE; } if (!node->name || strcmp (node->name, "efolder") != 0) { g_warning ("`%s' corrupt: root node is not 'efolder'", metadata); xmlFreeDoc (doc); return FALSE; } node = node->children; while (node != NULL) {