home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / wapuniverse-src-0.3.5.build9.tar.gz / wapuniverse-src-0.3.5.build9.tar / wapuniverse-0.3.5.build9 / dbUrl.h < prev    next >
C/C++ Source or Header  |  2000-11-12  |  2KB  |  57 lines

  1. #ifndef _dburl_h_
  2. #define _dburl_h_
  3. //---------------------------------------------------------------------------
  4. // dbUrl.h
  5. //
  6. // Project: WAPUniverse for PalmOS
  7. // Copyright ⌐ 1999-2000 Filip Onkelinx
  8. //
  9. // http://www.wapuniverse.com/
  10. // filip@onkelinx.com
  11. //
  12. // This program is free software; you can redistribute it and/or
  13. // modify it under the terms of the GNU General Public License
  14. // as published by the Free Software Foundation; either version 2
  15. // of the License, or (at your option) any later version.
  16. //
  17. // This program is distributed in the hope that it will be useful,
  18. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. // GNU General Public License for more details.
  21. //
  22. // You should have received a copy of the GNU General Public License
  23. // along with this program; if not, write to the Free Software 
  24. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  25. //
  26. //
  27. // $Workfile: dbUrl.h $  
  28. // $Author: wapuniverse $  
  29. // $Date: 2000/11/11 20:51:09 $     
  30. // $Revision: 1.8 $
  31. //
  32. // $Header: /cvsroot/wapuniverse/wapuniverse/src/dbUrl.h,v 1.8 2000/11/11 20:51:09 wapuniverse Exp $
  33. //
  34. //---------------------------------------------------------------------------
  35.  
  36. #include "WAPuniverse.h"
  37.  
  38. #define SEC_1  __attribute__ ((section ("sec_1")))
  39.  
  40. #define dbUrlDBType           'UrlW'          // type for application database.  must be 4 chars, mixed case.
  41. #define dbUrlDBName           "UrlDb-gWAP"    // name for application database.  up to 31 characters.
  42. #define dbUrlNewURLSize    6               // initial size for new database record.
  43.  
  44.  
  45.  
  46. void     dbUrlPackURL (dbUrlURL * url, MemHandle urlDBEntry) SEC_1 ;
  47. void     dbUrlUnPackURL (dbUrlURL * url, dbUrlPackedURL *packedURL) SEC_1 ;
  48. Boolean dbUrlCreateRecord (GlobalsType *g) SEC_1;
  49. void     dbUrlReadCurrentUrl (GlobalsType *g) SEC_1;
  50. Err     dbUrlSortRecord (DmOpenRef dbP, UInt16 *indexP) SEC_1;
  51. Boolean dbUrlDeleteCurrentRecord (GlobalsType *g) SEC_1;
  52. Err     dbUrlInitAppInfo (DmOpenRef dbP, GlobalsType *g) SEC_1;
  53. void    dbUrlOpenOrCreateDB(UInt16 mode, GlobalsType *g) SEC_1;
  54. UInt16     dbUrlNumRecords(GlobalsType *g) SEC_1;
  55.  
  56. #endif
  57.