summaryrefslogtreecommitdiffstats
path: root/src/lng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lng.c')
-rw-r--r--src/lng.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lng.c b/src/lng.c
index 4b0676d..5605768 100644
--- a/src/lng.c
+++ b/src/lng.c
@@ -5,6 +5,24 @@
#include "rccconfig.h"
#include "rcclocale.h"
+int rccGetLanguageNumber(rcc_context ctx) {
+ if (!ctx) {
+ if (rcc_default_ctx) ctx = rcc_default_ctx;
+ else return 0;
+ }
+
+ return ctx->n_languages;
+}
+
+int rccGetClassNumber(rcc_context ctx) {
+ if (!ctx) {
+ if (rcc_default_ctx) ctx = rcc_default_ctx;
+ else return 0;
+ }
+
+ return ctx->n_classes;
+}
+
rcc_language_ptr rccGetLanguagePointer(rcc_context ctx, rcc_language_id language_id) {
if (!ctx) {
if (rcc_default_ctx) ctx = rcc_default_ctx;