mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
21 lines
506 B
C
21 lines
506 B
C
#ifndef SKYNET_CONTEXT_HANDLE_H
|
|
#define SKYNET_CONTEXT_HANDLE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "skynet_harbor.h"
|
|
|
|
struct skynet_context;
|
|
|
|
uint32_t skynet_handle_register(struct skynet_context *);
|
|
void skynet_handle_retire(uint32_t handle);
|
|
struct skynet_context * skynet_handle_grab(uint32_t handle);
|
|
void skynet_handle_retireall();
|
|
|
|
uint32_t skynet_handle_findname(const char * name);
|
|
const char * skynet_handle_namehandle(uint32_t handle, const char *name);
|
|
|
|
void skynet_handle_init(int harbor);
|
|
|
|
#endif
|