X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.h;h=18e37204b6591a53badd8d21b33c623203c58988;hb=2336c8428b6fff8f97cb71bfbe4472080ac92938;hp=4bf23244e7f0fd329dabdc3a8671ce6962e8b8e6;hpb=043d8c38ecd058ce89cfdce68ec173603ce538dd;p=ptask.git diff --git a/src/tw.h b/src/tw.h index 4bf2324..18e3720 100644 --- a/src/tw.h +++ b/src/tw.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2012-2013 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -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; @@ -27,10 +27,30 @@ struct task { char *uuid; char *note; char *project; + char *priority; + char *urgency; + char *recur; + struct tm *entry; + struct tm *due; + struct tm *start; }; -struct task **get_all_tasks(const char *status); -char *task_exec(char *opts); -char *escape(const char *txt); +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_task_done(const char *uuid); +void tw_task_start(const char *uuid); +void tw_task_stop(const char *uuid); +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); +struct project **tw_get_projects(struct task **tasks); +void tw_project_list_free(struct project **); #endif