Merge pull request #2657 from msurovcak/msurovcak-statistics-collon
[oweals/luci.git] / modules / luci-base / src / template_lmo.h
index 57f59aa56b2f587e87058f7a572f89fbb674f71b..587884ea3aabc7cab3bfca77b082515d288c3255 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * lmo - Lua Machine Objects - General header
  *
- *   Copyright (C) 2009-2012 Jo-Philipp Wich <xm@subsignal.org>
+ *   Copyright (C) 2009-2012 Jo-Philipp Wich <jow@openwrt.org>
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -73,6 +73,7 @@ struct lmo_catalog {
 
 typedef struct lmo_catalog lmo_catalog_t;
 
+typedef void (*lmo_iterate_cb_t)(uint32_t, const char *, int, void *);
 
 uint32_t sfh_hash(const char *data, int len);
 uint32_t lmo_canon_hash(const char *data, int len);
@@ -87,6 +88,7 @@ extern lmo_catalog_t *_lmo_active_catalog;
 int lmo_load_catalog(const char *lang, const char *dir);
 int lmo_change_catalog(const char *lang);
 int lmo_translate(const char *key, int keylen, char **out, int *outlen);
+void lmo_iterate(lmo_iterate_cb_t cb, void *priv);
 void lmo_close_catalog(const char *lang);
 
 #endif