X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.h;h=6f3c177ee766b3b8e8fe97bbffa480fcdf54751b;hb=8d43529da6a9a3a469b107ab07f52991e9f18e75;hp=74aacfdd464b03360641d52c89ddbbc416e19b4e;hpb=41ddd7f6aed1015af7c197f039966089d7105600;p=ptask.git diff --git a/src/tw.h b/src/tw.h index 74aacfd..6f3c177 100644 --- a/src/tw.h +++ b/src/tw.h @@ -17,8 +17,8 @@ * 02110-1301 USA */ -#ifndef _GTASK_TW_H_ -#define _GTASK_TW_H_ +#ifndef _PTASK_TW_H_ +#define _PTASK_TW_H_ struct task { int id; @@ -28,6 +28,15 @@ struct task { char *note; char *project; char *priority; + char *urgency; + struct tm *entry; + struct tm *due; + struct tm *start; +}; + +struct project { + char *name; + int count; }; struct task **tw_get_all_tasks(const char *status); @@ -35,10 +44,10 @@ void tw_modify_description(const char *uuid, const char *newdesc); void tw_modify_project(const char *uuid, const char *newproj); void tw_modify_priority(const char *uuid, const char *priority); void tw_done(const char *uuid); -void tw_add(const char *newdesc); +void tw_task_remove(const char *); +void tw_add(const char *newdesc, const char *prj, const char *prio); void tw_task_list_free(struct task **tasks); - -char *task_exec(char *opts); -char *escape(const char *txt); +struct project **tw_get_projects(struct task **tasks); +void tw_project_list_free(struct project **); #endif