projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright
[ptask.git]
/
src
/
tw.h
diff --git
a/src/tw.h
b/src/tw.h
index
6e5f397
..
c3fe2b4
100644
(file)
--- a/
src/tw.h
+++ b/
src/tw.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 201
0-2012
jeanfi@gmail.com
+ * Copyright (C) 201
2-2016
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
*
* 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
*/
* 02110-1301 USA
*/
-#ifndef _
G
TASK_TW_H_
-#define _
G
TASK_TW_H_
+#ifndef _
P
TASK_TW_H_
+#define _
P
TASK_TW_H_
struct task {
int id;
struct task {
int id;
@@
-28,17
+28,33
@@
struct task {
char *note;
char *project;
char *priority;
char *note;
char *project;
char *priority;
+ char *urgency;
+ char *recur;
+ char **tags;
+ struct tm *entry;
+ struct tm *due;
+ struct tm *start;
+};
+
+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);
};
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_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);
void tw_task_list_free(struct task **tasks);
+struct project **tw_get_projects(struct task **tasks);
+void tw_project_list_free(struct project **);
-char *task_exec(char *opts);
-
char *escape(const char *txt
);
+/* Whether ptask check that the taskwarrior version is supported. */
+
void tw_enable_check_version(int e
);
#endif
#endif