예제 #1
0
파일: ipc.c 프로젝트: FHV-S1-FFPST/BOSS
int32_t
channelSubscribe( uint32_t channelId )
{
	Task* t = getTask( getCurrentPid() );

	return channel_subscribe( channelId, t );
}
예제 #2
0
파일: vim.c 프로젝트: alex-vim/neovim
/// Subscribes to event broadcasts
///
/// @param channel_id The channel id(passed automatically by the dispatcher)
/// @param event The event type string
void vim_subscribe(uint64_t channel_id, String event)
{
  size_t length = (event.size < EVENT_MAXLEN ? event.size : EVENT_MAXLEN);
  char e[EVENT_MAXLEN + 1];
  memcpy(e, event.data, length);
  e[length] = NUL;
  channel_subscribe(channel_id, e);
}