X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftw.h;h=a8c07918f444c3427cf553935f8aca80cae6dc16;hb=1ff664c141ac890095ba33d96d28aca87f8b2ff7;hp=41a17895114f8465fe24541ed8b23e8788f645fc;hpb=42095f26d5a6edb708698f553cb5ba31ab03c05e;p=ptask.git diff --git a/src/tw.h b/src/tw.h index 41a1789..a8c0791 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,6 +30,11 @@ 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); @@ -37,5 +42,6 @@ void tw_modify_priority(const char *uuid, const char *priority); void tw_done(const char *uuid); void tw_add(const char *newdesc, const char *prj, const char *prio); void tw_task_list_free(struct task **tasks); +struct project **tw_get_projects(struct task **tasks); #endif