aboutsummaryrefslogtreecommitdiffstats
path: root/src/interaction.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-06-26 13:11:31 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-06-30 14:34:35 +0200
commit8a85aaafa5905297398605eb890b00d22416eeb5 (patch)
tree16ac6b3f3ec8039d166fe3e116230231f7a54197 /src/interaction.c
parent9ed7494f5e0b20c9a210520ba42fecd4ed51baf2 (diff)
downloadcalcurse-8a85aaafa5905297398605eb890b00d22416eeb5.tar.gz
calcurse-8a85aaafa5905297398605eb890b00d22416eeb5.zip
Rename interaction functions
Rename all interaction functions for the sake of consistency and add a "interact_" prefix. Also, mark day_erase_item() static since it is not used anywhere else. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/interaction.c')
-rw-r--r--src/interaction.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/interaction.c b/src/interaction.c
index ab4bde0..b90d61f 100644
--- a/src/interaction.c
+++ b/src/interaction.c
@@ -268,7 +268,7 @@ static void update_rept(struct rpt **rpt, const long start)
}
/* Edit an already existing item. */
-void day_edit_item(void)
+void interact_day_item_edit(void)
{
struct day_item *p;
struct recur_event *re;
@@ -366,7 +366,7 @@ void day_edit_item(void)
* recurrent appointments and appointments) and then to test the
* type of the item to be deleted.
*/
-int day_erase_item(long date, int item_number, enum eraseflg flag)
+static int day_erase_item(long date, int item_number, enum eraseflg flag)
{
struct day_item *p;
@@ -437,7 +437,7 @@ int day_erase_item(long date, int item_number, enum eraseflg flag)
}
/* Pipe an appointment or event to an external program. */
-void day_pipe_item(void)
+void interact_day_item_pipe(void)
{
char cmd[BUFSIZ] = "";
char const *arg[] = { cmd, NULL };
@@ -481,7 +481,7 @@ void day_pipe_item(void)
* Add an item in either the appointment or the event list,
* depending if the start time is entered or not.
*/
-void apoint_add(void)
+void interact_day_item_add(void)
{
#define LTIME 6
#define LDUR 12
@@ -574,7 +574,7 @@ void apoint_add(void)
}
/* Delete an item from the appointment list. */
-void apoint_delete(unsigned *nb_events, unsigned *nb_apoints)
+void interact_day_item_delete(unsigned *nb_events, unsigned *nb_apoints)
{
const char *del_app_str = _("Do you really want to delete this item ?");
long date;
@@ -622,7 +622,7 @@ void apoint_delete(unsigned *nb_events, unsigned *nb_apoints)
}
/* Request user to enter a new todo item. */
-void todo_new_item(void)
+void interact_todo_add(void)
{
int ch = 0;
const char *mesg = _("Enter the new ToDo item : ");
@@ -642,7 +642,7 @@ void todo_new_item(void)
}
/* Delete an item from the ToDo list. */
-void todo_delete(void)
+void interact_todo_delete(void)
{
const char *del_todo_str = _("Do you really want to delete this task ?");
const char *erase_warning =
@@ -685,7 +685,7 @@ void todo_delete(void)
}
/* Edit the description of an already existing todo item. */
-void todo_edit_item(void)
+void interact_todo_edit(void)
{
struct todo *i;
const char *mesg = _("Enter the new ToDo description :");
@@ -696,7 +696,7 @@ void todo_edit_item(void)
}
/* Pipe a todo item to an external program. */
-void todo_pipe_item(void)
+void interact_todo_pipe(void)
{
char cmd[BUFSIZ] = "";
char const *arg[] = { cmd, NULL };
@@ -730,7 +730,7 @@ void todo_pipe_item(void)
* o repetition end date
* and then delete the selected item to recreate it as a recurrent one
*/
-void recur_repeat_item(void)
+void interact_day_item_repeat(void)
{
struct tm *lt;
time_t t;