|
Data Structures |
| struct | moved |
| | Moving daemon context. More...
|
| struct | work |
| | Work queue entry. More...
|
Defines |
| #define | COPY_BLOCK_SHIFT 12 |
| | Power of two of copy unit credit.
|
| #define | COPY_BUF_SIZE 65536 |
| | Size of the reading buffer.
|
| #define | MOVED_MAGIC 0x00c0b100 |
Functions |
| work * | we_alloc (struct download *d, const gchar *dest, const gchar *ext) |
| | Allocate work queue entry.
|
| void | we_free (gpointer data) |
| | Freeing of work queue entry.
|
| void | d_sighandler (struct bgtask *unused_h, gpointer u, bgsig_t sig) |
| | Signal handler for termination.
|
| void | d_free (gpointer ctx) |
| | Freeing of computation context.
|
| void | d_notify (struct bgtask *unused_h, gboolean on) |
| | Daemon's notification of start/stop.
|
| void | d_start (struct bgtask *h, gpointer ctx, gpointer item) |
| | Daemon's notification: starting to work on item.
|
| void | d_end (struct bgtask *h, gpointer ctx, gpointer item) |
| | Daemon's notification: finished working on item.
|
| bgret_t | d_step_copy (struct bgtask *h, gpointer u, gint ticks) |
| | Copy file around, incrementally.
|
| void | move_queue (struct download *d, const gchar *dest, const gchar *ext) |
| | Enqueue completed download file for verification.
|
| void | move_init (void) |
| | Initializes the background moving/copying task.
|
| void | move_close (void) |
| | Called at shutdown time.
|
Variables |
| bgtask * | move_daemon |