#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "boris.h"

Go to the source code of this file.
Data Structures | |
| struct | character |
| struct | plugin_character_class |
Functions | |
| static const char * | character_attr_get (struct character *ch, const char *name) |
| static int | character_attr_set (struct character *ch, const char *name, const char *value) |
| static struct character * | character_get (unsigned character_id) |
| load character into active list, if not already loaded, then increase reference count of character. | |
| static struct character * | character_ll_alloc (void) |
| allocate an empty character. | |
| static void | character_ll_free (struct character *ch) |
| deallocate a character structure immediately. | |
| static struct character * | character_load (unsigned character_id) |
| load a character from fdb. | |
| static struct character * | character_new (void) |
| static int | character_preflight (void) |
| preflight all of the characters by loading every one of them. | |
| static void | character_put (struct character *ch) |
| reduce reference count of character. | |
| static int | character_save (struct character *ch) |
| save a character record, but only if the dirty_fl is set. | |
| static int | initialize (void) |
| LIST_HEAD (struct character_cache, struct character) | |
| static int | shutdown (void) |
Variables | |
| struct { | |
| char * name | |
| size_t ofs | |
| enum value_type type | |
| } | attrinfo [] |
| definition of every attribute in character record. | |
| static struct character_cache | character_cache |
| list of all loaded characters. | |
| static struct freelist | character_id_freelist |
| struct plugin_character_class | plugin_class |
Definition in file character.c.
| static const char* character_attr_get | ( | struct character * | ch, | |
| const char * | name | |||
| ) | [static] |
| static int character_attr_set | ( | struct character * | ch, | |
| const char * | name, | |||
| const char * | value | |||
| ) | [static] |
Definition at line 121 of file character.c.


| static struct character* character_get | ( | unsigned | character_id | ) | [static, read] |
load character into active list, if not already loaded, then increase reference count of character.
Definition at line 249 of file character.c.

| static struct character* character_ll_alloc | ( | void | ) | [static, read] |
allocate an empty character.
Definition at line 109 of file character.c.

| static void character_ll_free | ( | struct character * | ch | ) | [static] |
deallocate a character structure immediately.
Definition at line 84 of file character.c.


| static struct character* character_load | ( | unsigned | character_id | ) | [static, read] |
load a character from fdb.
Definition at line 163 of file character.c.


| static struct character* character_new | ( | void | ) | [static, read] |
| static int character_preflight | ( | void | ) | [static] |
preflight all of the characters by loading every one of them.
Definition at line 315 of file character.c.


| static void character_put | ( | struct character * | ch | ) | [static] |
reduce reference count of character.
Definition at line 275 of file character.c.

| static int character_save | ( | struct character * | ch | ) | [static] |
save a character record, but only if the dirty_fl is set.
Definition at line 205 of file character.c.

| static int initialize | ( | void | ) | [static] |
| LIST_HEAD | ( | struct character_cache | , | |
| struct character | ||||
| ) |
| static int shutdown | ( | void | ) | [static] |
struct character_cache character_cache [static] |
struct freelist character_id_freelist [static] |
Definition at line 76 of file character.c.
| char* name |
Definition at line 58 of file character.c.
| size_t ofs |
Definition at line 60 of file character.c.
struct plugin_character_class plugin_class [read] |
Initial value:
{
.base_class = { PLUGIN_API, "character", initialize, shutdown },
.character_interface = {
character_get, character_put, character_new,
character_attr_set, character_attr_get,
character_save
},
}
Definition at line 396 of file character.c.
| enum value_type type |
Definition at line 59 of file character.c.
1.5.8