mirror of
https://github.com/vale981/ray
synced 2025-03-13 22:56:38 -04:00

* code for maintaining the object table * Makefile fix * Clone git submodules. * directory -> object_table * Fix Makefile and remove unnecessary files. * Fix formatting. * make code more generic
15 lines
460 B
C
15 lines
460 B
C
#include "common.h"
|
|
#include "db.h"
|
|
|
|
typedef void (*lookup_callback)(void *);
|
|
|
|
/* Register a new object with the directory. */
|
|
void object_table_add(db_conn *db, unique_id object_id);
|
|
|
|
/* Remove object from the directory */
|
|
void object_table_remove(db_conn *db, unique_id object_id);
|
|
|
|
/* Look up entry from the directory */
|
|
void object_table_lookup(db_conn *db,
|
|
unique_id object_id,
|
|
lookup_callback callback);
|