diff options
Diffstat (limited to 'src/runtime/c/pgf/pgf.c')
| -rw-r--r-- | src/runtime/c/pgf/pgf.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/pgf.c b/src/runtime/c/pgf/pgf.c index 5317830fb..d7873f584 100644 --- a/src/runtime/c/pgf/pgf.c +++ b/src/runtime/c/pgf/pgf.c @@ -163,6 +163,20 @@ pgf_category_prob(PgfPGF* pgf, PgfCId catname) return abscat->prob; } +PGF_API GuString* +pgf_category_fields(PgfConcr* concr, PgfCId catname, size_t *n_lins) +{ + PgfCncCat* cnccat = + gu_map_get(concr->cnccats, catname, PgfCncCat*); + if (!cnccat) { + *n_lins = 0; + return NULL; + } + + *n_lins = cnccat->n_lins; + return &cnccat->labels; +} + PGF_API GuString pgf_language_code(PgfConcr* concr) { |
