⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 todo_record.h

📁 uclinux 下写的一个 todo 程序
💻 H
字号:
/* *  Copyright (C) 2000 EmSoft Limited (www.emsoftltd.com) * *  <Description of the file> * */#ifndef _TODO_RECORD_H_#define _TODO_RECORD_H_#include "glib.h"#include "db.h"#define NUM_OF_FIELDS 5#define TODO_DATABASE "todo.db"typedef struct _todo {    int         todo_id;    short       priority;    gboolean    completed;    long        dueDate;    char        *title;    // fields which are not persisted to database    gboolean    new;    gboolean    dirty;} Todo;#define NO_DUE_DATE -1#define TODO(p) ((Todo *) p)void       deserialize           (Todo **todo, char *raw_data);int  	   todo_record_db_open   ();void       todo_record_db_close  (int context);void       todo_record_close     (int context, Todo *todo);Todo      *todo_record_new       ();Todo      *todo_record_load      (int context, int key);int        todo_record_save      (int context, Todo *todo);int        todo_record_delete    (int context, Todo *todo);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -