X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.h;h=70a197c438f3e025a3d5485266339812452a12d7;hb=9fdef88f8d8f65ed6b74c9213acac7344feedf67;hp=e9190957870e4f65666463354f1d5844480de9be;hpb=739994b70d2715ae5961f5c42896d655a733595e;p=ptask.git diff --git a/src/tw.h b/src/tw.h index e919095..70a197c 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; @@ -30,14 +30,20 @@ struct task { char *priority; }; +struct project { + char *name; + int count; +}; + struct task **tw_get_all_tasks(const char *status); 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 *escape(const char *txt); +struct project **tw_get_projects(struct task **tasks); +void tw_project_list_free(struct project **); #endif