Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/unitselect_common.h File Reference

Freeciv-3.2

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

Go to the source code of this file.

## Data Structures

struct | usdata

## Macros

#define | SPECHASH_TAG usdata
#define | SPECHASH_INT_KEY_TYPE
#define | SPECHASH_IDATA_TYPE struct usdata *
#define | usdata_hash_data_iterate(phash, data) TYPED_HASH_DATA_ITERATE(struct usdata *, phash, data)
#define | usdata_hash_data_iterate_end HASH_DATA_ITERATE_END

## Functions

struct usdata_hash * | usdlg_data_new (const struct tile *ptile)
void | usdlg_data_destroy (struct usdata_hash *ushash)

## Macro Definition Documentation

## ◆ SPECHASH_IDATA_TYPE

#define SPECHASH_IDATA_TYPE struct usdata *

Definition at line 31 of file unitselect_common.h.

## ◆ SPECHASH_INT_KEY_TYPE

#define SPECHASH_INT_KEY_TYPE

Definition at line 30 of file unitselect_common.h.

## ◆ SPECHASH_TAG

#define SPECHASH_TAG usdata

Definition at line 29 of file unitselect_common.h.

## ◆ usdata_hash_data_iterate

#define usdata_hash_data_iterate | ( |  | phash,
|  |  | data
| ) |  | TYPED_HASH_DATA_ITERATE(struct usdata *, phash, data)

Definition at line 34 of file unitselect_common.h.

## ◆ usdata_hash_data_iterate_end

#define usdata_hash_data_iterate_end HASH_DATA_ITERATE_END

Definition at line 36 of file unitselect_common.h.

## Function Documentation

## ◆ usdlg_data_destroy()

void usdlg_data_destroy | ( | struct usdata_hash * | ushash | ) |

Destroy a unit selection data set.

Definition at line 138 of file unitselect_common.c.

Referenced by usdlg_cmd_exec(), and usdlg_refresh().

## ◆ usdlg_data_new()

struct usdata_hash * usdlg_data_new | ( | const struct tile * | ptile | ) |

Create a unit selection data set.

Definition at line 94 of file unitselect_common.c.

Referenced by usdlg_cmd_exec(), and usdlg_refresh().