00001 /* liqbase 00002 * Copyright (C) 2008 Gary Birkett 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License version 2 00006 * as published by the Free Software Foundation. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 */ 00017 00018 /* 00019 * 00020 * Header for a horrible sketch filename decoder 00021 * 00022 */ 00023 00024 #ifndef LIQSKETCHPAGEFILENAME_H 00025 #define LIQSKETCHPAGEFILENAME_H 00026 00027 00028 // horrid core function, my apologies 00029 00030 struct pagefilename 00031 { 00032 // From: /home/user/MyDocs/_apg/liq.lcuk.20080525_021309.page.base 00033 00034 char filepath[255+1]; // /home/user/MyDocs/_apg 00035 //char filename[255+1]; // liq.lcuk.20080525_021309.page.base 00036 char fileuser[15+1]; // lcuk 00037 char filedate[15+1]; // 20080525_021309 00038 char fileclass[20+1]; // page 00039 char filetitle[20+1]; // base 00040 }; 00041 00042 int pagefilename_breakapart(struct pagefilename *self,char *filename); 00043 char *pagefilename_rebuild(struct pagefilename *self,char *bufferresultfilename,int buffermax); 00044 00045 00046 #endif