summaryrefslogtreecommitdiffstats
path: root/src/account/aux_lu.c
blob: 290721407da811b8e9581b51c179d573ffdd5f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "aux_lu.h"
#include <libuser/entity.h>
#include <libuser/user.h>

/*
 * Get the value of type from the given entity
 * returns string
 */
char* aux_lu_get_str(struct lu_ent* ent, char* type)
{
  return g_value_get_string(g_value_array_get_nth(lu_ent_get(ent, type), 0));
}

/*
 * Get the value of type from the given entity
 * returns long int
 */
long aux_lu_get_long(struct lu_ent* ent, char* type)
{
  return g_value_get_long(g_value_array_get_nth(lu_ent_get(ent, type), 0));
}