1/* Copyright (C) 2005 Red Hat, Inc. */ 2 3#ifndef _SEMANAGE_USERS_POLICY_H_ 4#define _SEMANAGE_USERS_POLICY_H_ 5 6#include <semanage/handle.h> 7#include <semanage/user_record.h> 8 9extern int semanage_user_query(semanage_handle_t * handle, 10 const semanage_user_key_t * key, 11 semanage_user_t ** response); 12 13extern int semanage_user_exists(semanage_handle_t * handle, 14 const semanage_user_key_t * key, int *response); 15 16extern int semanage_user_count(semanage_handle_t * handle, 17 unsigned int *response); 18 19extern int semanage_user_iterate(semanage_handle_t * handle, 20 int (*handler) (const semanage_user_t * record, 21 void *varg), 22 void *handler_arg); 23 24extern int semanage_user_list(semanage_handle_t * handle, 25 semanage_user_t *** records, unsigned int *count); 26 27#endif 28