Common functions for action (name) handling. More...
#include <stdio.h>
#include <stdlib.h>
#include "actions.h"
#include "est_ops.h"
#include "global.h"
#include "checksum.h"
#include "options.h"
#include "waa.h"
Go to the source code of this file.
Functions | |
int | ac__dispatch (struct estat *sts) |
This wrapper-callback for the current action callback calculates the path and fills in the entry_type for the current sts, if necessary. | |
int | act__find_action_by_name (const char *cmd, struct actionlist_t **action_p) |
Given a string cmd, return the corresponding action entry. |
Common functions for action (name) handling.
Definition in file actions.c.
int ac__dispatch | ( | struct estat * | sts | ) |
This wrapper-callback for the current action callback calculates the path and fills in the entry_type
for the current sts, if necessary.
Definition at line 27 of file actions.c.
References action, BUG_ON, DEBUGP, estat::entry_status, FS_CHILD_CHANGED, FS_REMOVED, FS_REPLACED, actionlist_t::local_callback, sstat_t::mode, estat::name, ops__allowed_by_filter(), OPT__ALL_REMOVED, estat::parent, estat::st, and STOPIF.
int act__find_action_by_name | ( | const char * | cmd, | |
struct actionlist_t ** | action_p | |||
) |
Given a string cmd, return the corresponding action entry.
Find the action structure by name.
Used by commandline parsing - finding the current action, and which help text to show.
Definition at line 68 of file actions.c.
References action_list, action_list_count, actionlist_t::name, and STOPIF_CODE_ERR.
Referenced by ac__Usage(), and main().