X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Ftw.h;h=a9af11d5b0360f9cef5a3da2c02d2b6581ef07d3;hb=781a99f9dbdf4aa086c7d33392f7201d5f731ed2;hp=182e60380d88365cfb0be4a3cda99864bd3bf08a;hpb=d2ffd5d71745fafa09e193ab9d32777b4ffbce49;p=ptask.git diff --git a/src/tw.h b/src/tw.h index 182e603..a9af11d 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,13 +27,24 @@ struct task { char *uuid; char *note; char *project; + char *priority; + char *urgency; +}; + +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); - -char *task_exec(char *opts); -char *escape(const char *txt); +void tw_modify_priority(const char *uuid, const char *priority); +void tw_done(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