1
1

* fileopctx.h: Define struct FileOpContext.

* background.h: Avoid conditional declarations.
Этот коммит содержится в:
Pavel Roskin 2003-10-24 18:28:32 +00:00
родитель 5995204d0e
Коммит 82a7b75a7b
4 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -1,5 +1,8 @@
2003-10-24 Pavel Roskin <proski@gnu.org> 2003-10-24 Pavel Roskin <proski@gnu.org>
* fileopctx.h: Define struct FileOpContext.
* background.h: Avoid conditional declarations.
* dir.h: Eliminate DIR_H_INCLUDE_HANDLE_DIRENT. Adjust all * dir.h: Eliminate DIR_H_INCLUDE_HANDLE_DIRENT. Adjust all
callers. Remove unused code. callers. Remove unused code.
* dlg.h: Remove unused code. * dlg.h: Remove unused code.

Просмотреть файл

@ -118,7 +118,7 @@ unregister_task_running (pid_t pid, int fd)
* -1 on failure * -1 on failure
*/ */
int int
do_background (FileOpContext *ctx, char *info) do_background (struct FileOpContext *ctx, char *info)
{ {
int comm[2]; /* control connection stream */ int comm[2]; /* control connection stream */
pid_t pid; pid_t pid;
@ -414,7 +414,7 @@ parent_call_header (void *routine, int argc, enum ReturnType type, FileOpContext
} }
int int
parent_call (void *routine, FileOpContext *ctx, int argc, ...) parent_call (void *routine, struct FileOpContext *ctx, int argc, ...)
{ {
va_list ap; va_list ap;
int i; int i;

Просмотреть файл

@ -30,11 +30,9 @@ extern struct TaskList *task_list;
void tell_parent (int msg); void tell_parent (int msg);
/* fileopctx.h must be included for FileOpContext to be defined */ struct FileOpContext;
#ifdef FILEOPCTX_H int do_background (struct FileOpContext *ctx, char *info);
int do_background (FileOpContext *ctx, char *info); int parent_call (void *routine, struct FileOpContext *ctx, int argc, ...);
int parent_call (void *routine, FileOpContext *ctx, int argc, ...);
#endif /* FILEOPCTX_H */
void unregister_task_running (pid_t, int fd); void unregister_task_running (pid_t, int fd);

Просмотреть файл

@ -19,7 +19,7 @@ typedef int (*mc_stat_fn) (char *filename, struct stat *buf);
/* This structure describes a context for file operations. It is used to update /* This structure describes a context for file operations. It is used to update
* the progress windows and pass around options. * the progress windows and pass around options.
*/ */
typedef struct { typedef struct FileOpContext {
/* The estimated time of arrival in seconds */ /* The estimated time of arrival in seconds */
double eta_secs; double eta_secs;