pi-hinote.h

Go to the documentation of this file.
00001 /*
00002  * $Id: pi-hinote.h,v 1.9 2006-10-17 13:24:07 desrod Exp $
00003  *
00004  * pi-hinote.h: HiNote application macros (deprecated)
00005  *
00006  * This library is free software; you can redistribute it and/or modify it
00007  * under the terms of the GNU Library General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or (at
00009  * your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
00014  * General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public License
00017  * along with this library; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020  
00021 #ifndef _PILOT_HINOTE_H_        /* -*- C++ -*- */
00022 #define _PILOT_HINOTE_H_
00023 
00024 #include "pi-appinfo.h"
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030         typedef struct HiNoteNote {
00031                 int flags;
00032                 int level;
00033                 char *text;
00034         } HiNoteNote_t;
00035 
00036         typedef struct HiNoteAppInfo {
00037                 struct CategoryAppInfo category;
00038                 unsigned char reserved[48];
00039         } HiNoteAppInfo_t;
00040 
00041         extern void free_HiNoteNote PI_ARGS((struct HiNoteNote *));
00042         extern int unpack_HiNoteNote
00043             PI_ARGS((struct HiNoteNote *, unsigned char *record, int len));
00044         extern int pack_HiNoteNote
00045             PI_ARGS((struct HiNoteNote *, unsigned char *record, int len));
00046         extern int unpack_HiNoteAppInfo
00047             PI_ARGS((struct HiNoteAppInfo *, unsigned char *AppInfo,
00048                      size_t len));
00049         extern int pack_HiNoteAppInfo
00050             PI_ARGS((struct HiNoteAppInfo *, unsigned char *AppInfo,
00051                      size_t len));
00052 
00053 #ifdef __cplusplus
00054 }
00055 #endif                          /*__cplusplus*/
00056 #endif                          /* _PILOT_HINOTE_H_ */

© 1996-2007 by pilot-link.org. All rights reserved.