Feature #318 ยป 0036-Agents-Clear-trailing-spaces.patch
client/agents/agents.c | ||
---|---|---|
{
|
||
int i;
|
||
/* FIXME: doing this will wipe out any presets on disconnect.
|
||
* a proper solution should be to split up the client_free functions
|
||
/* FIXME: Doing this will wipe out any presets on disconnect.
|
||
* A proper solution should be to split up the client_free functions
|
||
* for a simple disconnect and a client quit. for right now, we just
|
||
* let the OS free the memory on exit instead of doing it ourselves. */
|
||
/* cmafec_free(); */
|
||
/*simple_historian_done();*/
|
||
/* simple_historian_done(); */
|
||
for (;;) {
|
||
struct call *pcall = remove_and_return_a_call();
|
||
if (!pcall) {
|
||
break;
|
||
}
|
client/agents/agents.h | ||
---|---|---|
/**********************************************************************
|
||
/***********************************************************************
|
||
Freeciv - Copyright (C) 2001 - R. Falke
|
||
This program is free software; you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
... | ... | |
void register_agent(const struct agent *agent);
|
||
bool agents_busy(void);
|
||
/* called from client/packhand.c */
|
||
/* Called from client/packhand.c */
|
||
void agents_disconnect(void);
|
||
void agents_processing_started(void);
|
||
void agents_processing_finished(void);
|
||
... | ... | |
void agents_tile_new(struct tile *ptile);
|
||
void agents_tile_remove(struct tile *ptile);
|
||
/* called from agents */
|
||
/* Called from agents */
|
||
void cause_a_city_changed_for_agent(const char *name_of_calling_agent,
|
||
struct city *pcity);
|
||
struct city *pcity);
|
||
void cause_a_unit_changed_for_agent(const char *name_of_calling_agent,
|
||
struct unit *punit);
|
||
struct unit *punit);
|
||
void wait_for_requests(const char *agent_name, int first_request_id,
|
||
int last_request_id);
|
||
int last_request_id);
|
||
#ifdef __cplusplus
|
||
}
|
client/agents/cma_core.c | ||
---|---|---|
}
|
||
return pcity;
|
||
}
|
||
}
|
||
/************************************************************************//**
|
||
Change the actual city setting to the given result. Returns TRUE iff
|
client/agents/sha.h | ||
---|---|---|
/**********************************************************************
|
||
/***********************************************************************
|
||
Freeciv - Copyright (C) 2004 - A. Gorshenev
|
||
This program is free software; you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
... | ... | |
void simple_historian_init(void);
|
||
void simple_historian_done(void);
|
||
struct tile* sha_tile_recall(struct tile *ptile);
|
||
struct unit* sha_unit_recall(int id);
|
||
struct tile *sha_tile_recall(struct tile *ptile);
|
||
struct unit *sha_unit_recall(int id);
|
||
#ifdef __cplusplus
|
||
}
|