Freeciv-3.3: /fast/freeciv/nightly/main/common/workertask.h File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Data Structures | Macros | Functions
workertask.h File Reference
`#include "speclist.h"`

Go to the source code of this file.

## Data Structures

struct | worker_task

## Macros

#define | SPECLIST_TAG worker_task
#define | SPECLIST_TYPE struct worker_task
#define | worker_task_list_iterate(tasklist, ptask) TYPED_LIST_ITERATE(struct worker_task, tasklist, ptask)
#define | worker_task_list_iterate_end LIST_ITERATE_END

## Functions

void | worker_task_init (struct worker_task *ptask)
bool | worker_task_is_sane (struct worker_task *ptask)

## Macro Definition Documentation

## ◆ SPECLIST_TAG

#define SPECLIST_TAG worker_task

Definition at line 29 of file workertask.h.

## ◆ SPECLIST_TYPE

#define SPECLIST_TYPE struct worker_task

Definition at line 30 of file workertask.h.

## ◆ worker_task_list_iterate

#define worker_task_list_iterate | ( |  | tasklist,
|  |  | ptask
| ) |  | TYPED_LIST_ITERATE(struct worker_task, tasklist, ptask)

Definition at line 33 of file workertask.h.

## ◆ worker_task_list_iterate_end

#define worker_task_list_iterate_end LIST_ITERATE_END

Definition at line 35 of file workertask.h.

## Function Documentation

## ◆ worker_task_init()

void worker_task_init | ( | struct worker_task * | ptask | ) |

Initialize empty worker_task.

Definition at line 31 of file workertask.c.

Referenced by handle_worker_task(), and texai_req_worker_task_rcv().

## ◆ worker_task_is_sane()

bool worker_task_is_sane | ( | struct worker_task * | ptask | ) |

Returns TRUE iff the specified worker_task is sane.

Definition at line 40 of file workertask.c.

Referenced by handle_worker_task(), handle_worker_task(), sg_load_sanitycheck(), and sg_load_sanitycheck().