summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-10-25 15:40:25 +0100
committerHaru <haru@dotalux.com>2015-11-11 22:49:00 +0100
commit29a057e286d2203108f93f362c1250c70d7bf511 (patch)
tree09543537202040703efddf7a85cb592992d1ad71 /src/map/npc.h
parente2c12c429814d9c42eb2874cf639f709aa3e5ea4 (diff)
downloadhercules-29a057e286d2203108f93f362c1250c70d7bf511.tar.gz
hercules-29a057e286d2203108f93f362c1250c70d7bf511.tar.bz2
hercules-29a057e286d2203108f93f362c1250c70d7bf511.tar.xz
hercules-29a057e286d2203108f93f362c1250c70d7bf511.zip
Split the source path reference retain mechanism out of npc_parsename.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index bf3d1494d..340785aa6 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -70,7 +70,7 @@ struct npc_data {
unsigned short stat_point;
struct npc_parse *chatdb;
- char* path;/* path dir */
+ const char *path; ///< Source path reference
enum npc_subtype subtype;
int src_id;
union {
@@ -225,6 +225,8 @@ struct npc_interface {
void (*clearsrcfile) (void);
void (*addsrcfile) (const char *name);
void (*delsrcfile) (const char *name);
+ const char *(*retainpathreference) (const char *filepath);
+ void (*releasepathreference) (const char *filepath);
void (*parsename) (struct npc_data *nd, const char *name, const char *start, const char *buffer, const char *filepath);
int (*parseview) (const char *w4, const char *start, const char *buffer, const char *filepath);
bool (*viewisid) (const char *viewid);