HelenOS sources
#ifndef _LIBC_LOC_H_
#define _LIBC_LOC_H_
#include <ipc/loc.h>
#include <async.h>
#include <stdbool.h>
#include <types/loc.h>
typedef void (*loc_cat_change_cb_t)(void *);
extern async_exch_t *loc_exchange_begin_blocking(void);
extern async_exch_t *loc_exchange_begin(void);
extern void loc_exchange_end(async_exch_t *);
extern errno_t loc_server_register(const char *, loc_srv_t **);
extern void loc_server_unregister(loc_srv_t *);
extern errno_t loc_service_register(loc_srv_t *, const char *, service_id_t *);
extern errno_t loc_service_unregister(loc_srv_t *, service_id_t);
extern errno_t loc_service_add_to_cat(loc_srv_t *, service_id_t, category_id_t);
extern errno_t loc_service_get_id(const char *, service_id_t *,
unsigned int);
extern errno_t loc_service_get_name(service_id_t, char **);
extern errno_t loc_service_get_server_name(service_id_t, char **);
extern errno_t loc_namespace_get_id(const char *, service_id_t *,
unsigned int);
extern errno_t loc_category_get_id(const char *, category_id_t *,
unsigned int);
extern errno_t loc_category_get_name(category_id_t, char **);
extern errno_t loc_category_get_svcs(category_id_t, category_id_t **, size_t *);
extern loc_object_type_t loc_id_probe(service_id_t);
extern async_sess_t *loc_service_connect(service_id_t, iface_t,
unsigned int);
extern int loc_null_create(void);
extern void loc_null_destroy(int);
extern size_t loc_count_namespaces(void);
extern size_t loc_count_services(service_id_t);
extern size_t loc_get_namespaces(loc_sdesc_t **);
extern size_t loc_get_services(service_id_t, loc_sdesc_t **);
extern errno_t loc_get_categories(category_id_t **, size_t *);
extern errno_t loc_register_cat_change_cb(loc_cat_change_cb_t, void *);
#endif
HelenOS homepage, sources at GitHub