SlideShare a Scribd company logo
Ring Documentation, Release 1.8
• SDL_bool SDL_HasAVX(void)
• SDL_bool SDL_HasMMX(void)
• SDL_bool SDL_HasRDTSC(void)
• SDL_bool SDL_HasSSE(void)
• SDL_bool SDL_HasSSE2(void)
• SDL_bool SDL_HasSSE3(void)
• SDL_bool SDL_HasSSE41(void)
• SDL_bool SDL_HasSSE42(void)
• SDL_PowerState SDL_GetPowerInfo(int *secs,int *pct)
• double SDL_acos(double x)
• int IMG_Init(int flags)
• void IMG_Quit(void)
• SDL_Surface *IMG_Load(const char *file)
• SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc)
• SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type)
• SDL_Surface *IMG_LoadCUR_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadBMP_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadPNM_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadXPM_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadXCF_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadGIF_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadTIF_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadLBM_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src)
• SDL_Surface *IMG_ReadXPMFromArray(char **xpm)
• int IMG_isCUR(SDL_RWops *src)
• int IMG_isICO(SDL_RWops *src)
• int IMG_isBMP(SDL_RWops *src)
• int IMG_isPNM(SDL_RWops *src)
• int IMG_isXPM(SDL_RWops *src)
• int IMG_isXCF(SDL_RWops *src)
• int IMG_isPCX(SDL_RWops *src)
1191
Ring Documentation, Release 1.8
• int IMG_isGIF(SDL_RWops *src)
• int IMG_isJPG(SDL_RWops *src)
• int IMG_isTIF(SDL_RWops *src)
• int IMG_isPNG(SDL_RWops *src)
• int IMG_isLBM(SDL_RWops *src)
• int IMG_isXV(SDL_RWops *src)
• int TTF_Init(void)
• int TTF_WasInit(void)
• void TTF_Quit(void)
• TTF_Font *TTF_OpenFont(const char *file, int ptsize)
• TTF_Font *TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize)
• TTF_Font *TTF_OpenFontIndex(const char *file, int ptsize, long index)
• TTF_Font *TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index)
• void TTF_CloseFont(TTF_Font *font)
• void TTF_ByteSwappedUNICODE(int swapped)
• int TTF_GetFontStyle(TTF_Font *font)
• void TTF_SetFontStyle(TTF_Font *font, int style)
• int TTF_GetFontOutline(TTF_Font *font)
• void TTF_SetFontOutline(TTF_Font *font, int outline)
• int TTF_GetFontHinting(TTF_Font *font)
• void TTF_SetFontHinting(TTF_Font *font, int hinting)
• int TTF_GetFontKerning(TTF_Font *font)
• void TTF_SetFontKerning(TTF_Font *font, int allowed)
• int TTF_FontHeight(const TTF_Font *font)
• int TTF_FontAscent(const TTF_Font *font)
• int TTF_FontDescent(const TTF_Font *font)
• int TTF_FontLineSkip(const TTF_Font *font)
• long TTF_FontFaces(const TTF_Font *font)
• int TTF_FontFaceIsFixedWidth(const TTF_Font *font)
• char *TTF_FontFaceFamilyName(const TTF_Font *font)
• char *TTF_FontFaceStyleName(const TTF_Font *font)
• int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
• int TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
• int TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
• int TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h)
• int TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h)
1192
Ring Documentation, Release 1.8
• SDL_Surface *TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg)
• SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text,SDL_Color fg)
• SDL_Surface *TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg)
• SDL_Surface *TTF_RenderText_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg)
• SDL_Surface *TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg)
• SDL_Surface *TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text,SDL_Color fg,
SDL_Color bg)
• SDL_Surface *TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg,SDL_Color bg)
• SDL_Surface *TTF_RenderText_Blended(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text,SDL_Color fg)
• SDL_Surface *TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg)
• int Mix_Init(int flags)
• void Mix_Quit(void)
• int Mix_OpenAudio(int frequency, Uint16 format, int channels, int chunksize)
• void Mix_CloseAudio(void)
• int Mix_QuerySpec(int *frequency, Uint16 *format, int *channels)
• int Mix_GetNumChunkDecoders(void)
• const char *Mix_GetChunkDecoder(int index)
• Mix_Chunk *Mix_LoadWAV(char *file)
• Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
• Mix_Chunk *Mix_QuickLoad_WAV(Uint8 *mem)
• void Mix_FreeChunk(Mix_Chunk *chunk)
• int Mix_AllocateChannels(int numchans)
• int Mix_Volume(int channel, int volume)
• int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops)
• int Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks)
• int Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms)
• int Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk,int loops, int ms, int ticks)
• void Mix_Pause(int channel)
• void Mix_Resume(int channel)
• int Mix_HaltChannel(int channel)
• int Mix_ExpireChannel(int channel, int ticks)
• int Mix_FadeOutChannel(int channel, int ms)
• int Mix_Paused(int channel)
1193
Ring Documentation, Release 1.8
• Mix_Fading Mix_FadingChannel(int which)
• Mix_Chunk *Mix_GetChunk(int channel)
• int Mix_ReserveChannels(int num)
• int Mix_GroupChannel(int which, int tag)
• int Mix_GroupChannels(int from, int to, int tag)
• int Mix_GroupCount(int tag)
• int Mix_GroupAvailable(int tag)
• int Mix_GroupOldest(int tag)
• int Mix_GroupNewer(int tag)
• int Mix_FadeOutGroup(int tag, int ms)
• int Mix_HaltGroup(int tag)
• int Mix_GetNumMusicDecoders(void)
• const char *Mix_GetMusicDecoder(int index)
• Mix_Music *Mix_LoadMUS(const char *file)
• void Mix_FreeMusic(Mix_Music *music)
• int Mix_PlayMusic(Mix_Music *music, int loops)
• int Mix_FadeInMusic(Mix_Music *music, int loops, int ms)
• int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position)
• int Mix_PlayingMusic(void)
• int Mix_PausedMusic(void)
• Mix_Fading Mix_FadingMusic(void)
• void *Mix_GetMusicHookData(void)
• int Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d,void *arg)
• int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f)
• int Mix_UnregisterAllEffects(int channel)
• int Mix_SetDistance(int channel, Uint8 distance)
• int Mix_SetPosition(int channel, Sint16 angle, Uint8 distance)
• int Mix_SetReverseStereo(int channel, int flip)
• int SDLNet_Init(void)
• void SDLNet_Quit(void)
• char *SDLNet_GetError(void)
• void SDLNet_Write16(Uint16 value, void *area)
• void SDLNet_Write32(Uint32 value, void *area)
• Uint16 SDLNet_Read16(void *area)
• Uint32 SDLNet_Read32(void *area)
• int SDLNet_ResolveHost(IPaddress *address, const char *host, Uint16 port)
1194
Ring Documentation, Release 1.8
• const char *SDLNet_ResolveIP(IPaddress *address)
• TCPsocket SDLNet_TCP_Open(IPaddress *ip)
• void SDLNet_TCP_Close(TCPsocket sock)
• TCPsocket SDLNet_TCP_Accept(TCPsocket server)
• IPaddress *SDLNet_TCP_GetPeerAddress(TCPsocket sock)
• int SDLNet_TCP_Send(TCPsocket sock, const void *data, int len)
• int SDLNet_TCP_Recv(TCPsocket sock, void *data, int maxlen)
• UDPsocket SDLNet_UDP_Open(Uint16 port)
• void SDLNet_UDP_Close(UDPsocket sock)
• int SDLNet_UDP_Bind(UDPsocket sock, int channel, IPaddress *address)
• void SDLNet_UDP_Unbind(UDPsocket sock, int channel)
• IPaddress *SDLNet_UDP_GetPeerAddress(UDPsocket sock, int channel)
• int SDLNet_UDP_Send(UDPsocket sock, int channel, UDPpacket *packet)
• int SDLNet_UDP_Recv(UDPsocket sock, UDPpacket *packet)
• int SDLNet_UDP_SendV(UDPsocket sock, UDPpacket **packetV, int npackets)
• int SDLNet_UDP_RecvV(UDPsocket sock, UDPpacket **packetV)
• UDPpacket *SDLNet_AllocPacket(int size)
• int SDLNet_ResizePacket(UDPpacket *packet, int size)
• void SDLNet_FreePacket(UDPpacket *packet)
• UDPpacket **SDLNet_AllocPacketV(int howmany, int size)
• void SDLNet_FreePacketV(UDPpacket **packetV)
• SDLNet_SocketSet SDLNet_AllocSocketSet(int maxsockets)
• void SDLNet_FreeSocketSet(SDLNet_SocketSet set)
• int SDLNet_AddSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock)
• int SDLNet_TCP_AddSocket(SDLNet_SocketSet set, TCPsocket sock)
• int SDLNet_UDP_AddSocket(SDLNet_SocketSet set, UDPsocket sock)
• int SDLNet_DelSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock)
• int SDLNet_TCP_DelSocket(SDLNet_SocketSet set, TCPsocket sock)
• int SDLNet_UDP_DelSocket(SDLNet_SocketSet set, UDPsocket sock)
• int SDLNet_CheckSockets(SDLNet_SocketSet set, Uint32 timeout)
• int SDLNet_SocketReady(TCPsocket sock)
• int circleRGBA(SDL_Renderer * renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
1195
CHAPTER
NINETY
RINGLIBUV FUNCTIONS REFERENCE
• int uv_loop_init(uv_loop_t* loop)
• int uv_loop_configure(uv_loop_t* loop, uv_loop_option option, int)
• int uv_loop_close(uv_loop_t* loop)
• uv_loop_t* uv_default_loop(void)
• int uv_run(uv_loop_t* loop, uv_run_mode mode)
• int uv_loop_alive(const uv_loop_t* loop)
• void uv_stop(uv_loop_t* loop)
• size_t uv_loop_size(void)
• int uv_backend_fd(const uv_loop_t* loop)
• int uv_backend_timeout(const uv_loop_t* loop)
• uint64_t uv_now(const uv_loop_t* loop)
• void uv_update_time(uv_loop_t* loop)
• void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg)
• void uv_walk_2(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg)
• int uv_loop_fork(uv_loop_t* loop)
• int uv_is_active(const uv_handle_t* handle)
• int uv_is_closing(const uv_handle_t* handle)
• void uv_close(uv_handle_t* handle, uv_close_cb close_cb)
• void uv_close_2(uv_handle_t* handle, uv_close_cb close_cb)
• void uv_ref(uv_handle_t* handle)
• void uv_unref(uv_handle_t* handle)
• int uv_has_ref(const uv_handle_t* handle)
• size_t uv_handle_size(uv_handle_type type)
• int uv_send_buffer_size(uv_handle_t* handle, int* value)
• int uv_recv_buffer_size(uv_handle_t* handle, int* value)
• int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd)
• int uv_cancel(uv_req_t* req)
1196
Ring Documentation, Release 1.8
• size_t uv_req_size(uv_req_type type)
• int uv_timer_init(uv_loop_t* loop, uv_timer_t* handle)
• int uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
• int uv_timer_start_2(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
• int uv_timer_stop(uv_timer_t* handle)
• int uv_timer_again(uv_timer_t* handle)
• void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat)
• uint64_t uv_timer_get_repeat(const uv_timer_t* handle)
• int uv_prepare_init(uv_loop_t* loop, uv_prepare_t* prepare)
• int uv_prepare_start(uv_prepare_t* prepare, uv_prepare_cb cb)
• int uv_prepare_start_2(uv_prepare_t* prepare, uv_prepare_cb cb)
• int uv_prepare_stop(uv_prepare_t* prepare)
• int uv_check_init(uv_loop_t* loop, uv_check_t* check)
• int uv_check_start(uv_check_t* check, uv_check_cb cb)
• int uv_check_start_2(uv_check_t* check, uv_check_cb cb)
• int uv_check_stop(uv_check_t* check)
• int uv_idle_init(uv_loop_t* loop, uv_idle_t* idle)
• int uv_idle_start(uv_idle_t* idle, uv_idle_cb cb)
• int uv_idle_start_2(uv_idle_t* idle, uv_idle_cb cb)
• int uv_idle_stop(uv_idle_t* idle)
• int uv_async_init(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb)
• int uv_async_init_2(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb)
• int uv_async_send(uv_async_t* async)
• int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd)
• int uv_poll_init_socket(uv_loop_t* loop, uv_poll_t* handle, uv_os_sock_t socket)
• int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb cb)
• int uv_poll_start_2(uv_poll_t* handle, int events, uv_poll_cb cb)
• int uv_poll_stop(uv_poll_t* poll)
• int uv_signal_init(uv_loop_t* loop, uv_signal_t* signal)
• int uv_signal_start(uv_signal_t* signal, uv_signal_cb cb, int signum)
• int uv_signal_start_2(uv_signal_t* signal, uv_signal_cb cb, int signum)
• int uv_signal_start_oneshot(uv_signal_t* signal, uv_signal_cb cb, int signum)
• int uv_signal_start_oneshot_2(uv_signal_t* signal, uv_signal_cb cb, int signum)
• int uv_signal_stop(uv_signal_t* signal)
• void uv_disable_stdio_inheritance(void)
• int uv_spawn(uv_loop_t* loop, uv_process_t* handle, const uv_process_options_t* options)
1197
Ring Documentation, Release 1.8
• int uv_process_kill(uv_process_t* handle, int signum)
• int uv_kill(int pid, int signum)
• int uv_shutdown(uv_shutdown_t* req, uv_stream_t* handle, uv_shutdown_cb cb)
• int uv_shutdown_2(uv_shutdown_t* req, uv_stream_t* handle, uv_shutdown_cb cb)
• int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb)
• int uv_listen_2(uv_stream_t* stream, int backlog, uv_connection_cb cb)
• int uv_accept(uv_stream_t* server, uv_stream_t* client)
• int uv_read_start(uv_stream_t* stream, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
• int uv_read_start_2(uv_stream_t* stream, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
• int uv_read_stop(uv_stream_t*)
• int uv_write(uv_write_t* req, uv_stream_t* handle, uv_buf_t *bufs, unsigned int nbufs, uv_write_cb cb)
• int uv_write_2(uv_write_t* req, uv_stream_t* handle, uv_buf_t *bufs, unsigned int nbufs, uv_write_cb cb)
• int uv_write2(uv_write_t* req, uv_stream_t* handle, uv_buf_t bufs, unsigned int nbufs, uv_stream_t
send_handle, uv_write_cb cb)
• int uv_write2_2(uv_write_t* req, uv_stream_t* handle, uv_buf_t bufs, unsigned int nbufs, uv_stream_t
send_handle, uv_write_cb cb)
• int uv_try_write(uv_stream_t* handle, uv_buf_t *bufs, unsigned int nbufs)
• int uv_is_readable(const uv_stream_t* handle)
• int uv_is_writable(const uv_stream_t* handle)
• int uv_stream_set_blocking(uv_stream_t* handle, int blocking)
• int uv_tcp_init(uv_loop_t* loop, uv_tcp_t* handle)
• int uv_tcp_init_ex(uv_loop_t* loop, uv_tcp_t* handle, unsigned int flags)
• int uv_tcp_open(uv_tcp_t* handle, uv_os_sock_t sock)
• int uv_tcp_nodelay(uv_tcp_t* handle, int enable)
• int uv_tcp_keepalive(uv_tcp_t* handle, int enable, unsigned int delay)
• int uv_tcp_simultaneous_accepts(uv_tcp_t* handle, int enable)
• int uv_tcp_bind(uv_tcp_t *handle,sockaddr *addr,unsigned int flags)
• int uv_tcp_getsockname(const uv_tcp_t* handle, struct sockaddr* name, int* namelen)
• int uv_tcp_getpeername(const uv_tcp_t* handle, struct sockaddr* name, int* namelen)
• int uv_tcp_connect(uv_connect_t* req, uv_tcp_t* handle, sockaddr * addr, uv_connect_cb cb)
• int uv_tcp_connect_2(uv_connect_t* req, uv_tcp_t* handle, sockaddr * addr, uv_connect_cb cb)
• int uv_pipe_init(uv_loop_t* loop, uv_pipe_t* handle, int ipc)
• int uv_pipe_open(uv_pipe_t* handle, uv_file file)
• int uv_pipe_bind(uv_pipe_t* handle, const char * name)
• void uv_pipe_connect(uv_connect_t* req, uv_pipe_t* handle, const char * name, uv_connect_cb cb)
• void uv_pipe_connect_2(uv_connect_t* req, uv_pipe_t* handle, const char * name, uv_connect_cb cb)
• int uv_pipe_getsockname(const uv_pipe_t* handle, char* buffer, size_t* size)
1198
Ring Documentation, Release 1.8
• int uv_pipe_getpeername(const uv_pipe_t* handle, char* buffer, size_t* size)
• void uv_pipe_pending_instances(uv_pipe_t* handle, int count)
• int uv_pipe_pending_count(uv_pipe_t* handle)
• uv_handle_type uv_pipe_pending_type(uv_pipe_t* handle)
• int uv_pipe_chmod(uv_pipe_t* handle, int flags)
• int uv_tty_init(uv_loop_t* loop, uv_tty_t* handle, uv_file fd, int readable)
• int uv_tty_set_mode(uv_tty_t* handle, uv_tty_mode_t mode)
• int uv_tty_reset_mode(void)
• int uv_tty_get_winsize(uv_tty_t* handle, int* width, int* height)
• int uv_udp_init(uv_loop_t* loop, uv_udp_t* handle)
• int uv_udp_init_ex(uv_loop_t* loop, uv_udp_t* handle, unsigned int flags)
• int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock)
• int uv_udp_bind(uv_udp_t* handle, sockaddr * addr, unsigned int flags)
• int uv_udp_getsockname(const uv_udp_t* handle, struct sockaddr* name, int* namelen)
• int uv_udp_set_membership(uv_udp_t* handle, const char * multicast_addr, const char * interface_addr,
uv_membership membership)
• int uv_udp_set_multicast_loop(uv_udp_t* handle, int on)
• int uv_udp_set_multicast_ttl(uv_udp_t* handle, int ttl)
• int uv_udp_set_multicast_interface(uv_udp_t* handle, const char * interface_addr)
• int uv_udp_set_broadcast(uv_udp_t* handle, int on)
• int uv_udp_set_ttl(uv_udp_t* handle, int ttl)
• int uv_udp_send(uv_udp_send_t* req, uv_udp_t* handle, uv_buf_t *bufs, unsigned int nbufs, sockaddr * addr,
uv_udp_send_cb send_cb)
• int uv_udp_send_2(uv_udp_send_t* req, uv_udp_t* handle, uv_buf_t *bufs, unsigned int nbufs, sockaddr *
addr, uv_udp_send_cb send_cb)
• int uv_udp_try_send(uv_udp_t* handle, uv_buf_t *bufs, unsigned int nbufs, sockaddr * addr)
• int uv_udp_recv_start(uv_udp_t* handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb)
• int uv_udp_recv_start_2(uv_udp_t* handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb)
• int uv_udp_recv_stop(uv_udp_t* handle)
• int uv_fs_event_init(uv_loop_t* loop, uv_fs_event_t* handle)
• int uv_fs_event_start(uv_fs_event_t* handle, uv_fs_event_cb cb, const char * path, unsigned int flags)
• int uv_fs_event_start_2(uv_fs_event_t* handle, uv_fs_event_cb cb, const char * path, unsigned int flags)
• int uv_fs_event_stop(uv_fs_event_t* handle)
• int uv_fs_event_getpath(uv_fs_event_t* handle, char* buffer, size_t* size)
• int uv_fs_poll_init(uv_loop_t* loop, uv_fs_poll_t* handle)
• int uv_fs_poll_start(uv_fs_poll_t* handle, uv_fs_poll_cb poll_cb, const char * path, unsigned int interval)
• int uv_fs_poll_start_2(uv_fs_poll_t* handle, uv_fs_poll_cb poll_cb, const char * path, unsigned int interval)
1199
Ring Documentation, Release 1.8
• int uv_fs_poll_stop(uv_fs_poll_t* handle)
• int uv_fs_poll_getpath(uv_fs_poll_t* handle, char* buffer, size_t* size)
• void uv_fs_req_cleanup(uv_fs_t* req)
• int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
• int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char * path, int flags, int mode, uv_fs_cb cb)
• int uv_fs_read(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_buf_t *bufs, unsigned int nbufs, int64_t offset,
uv_fs_cb cb)
• int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb)
• int uv_fs_write(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_buf_t *bufs, unsigned int nbufs, int64_t offset,
uv_fs_cb cb)
• int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char * path, int mode, uv_fs_cb cb)
• int uv_fs_mkdtemp(uv_loop_t* loop, uv_fs_t* req, const char * tpl, uv_fs_cb cb)
• int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb)
• int uv_fs_scandir(uv_loop_t* loop, uv_fs_t* req, const char * path, int flags, uv_fs_cb cb)
• int uv_fs_scandir_next(uv_fs_t* req, uv_dirent_t* ent)
• int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb)
• int uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
• int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb)
• int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, uv_fs_cb cb)
• int uv_fs_fsync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
• int uv_fs_fdatasync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
• int uv_fs_ftruncate(uv_loop_t* loop, uv_fs_t* req, uv_file file, int64_t offset, uv_fs_cb cb)
• int uv_fs_copyfile(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, int flags, uv_fs_cb
cb)
• int uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file out_fd, uv_file in_fd, int64_t in_offset, size_t length,
uv_fs_cb cb)
• int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char * path, int mode, uv_fs_cb cb)
• int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char * path, int mode, uv_fs_cb cb)
• int uv_fs_fchmod(uv_loop_t* loop, uv_fs_t* req, uv_file file, int mode, uv_fs_cb cb)
• int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char * path, double atime, double mtime, uv_fs_cb cb)
• int uv_fs_futime(uv_loop_t* loop, uv_fs_t* req, uv_file file, double atime, double mtime, uv_fs_cb cb)
• int uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, uv_fs_cb cb)
• int uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, int flags, uv_fs_cb
cb)
• int uv_fs_readlink(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb)
• int uv_fs_realpath(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb)
• int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
• int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
1200

More Related Content

PDF
The Ring programming language version 1.5.1 book - Part 84 of 180
PDF
The Ring programming language version 1.6 book - Part 91 of 189
PDF
The Ring programming language version 1.7 book - Part 118 of 196
PDF
The Ring programming language version 1.5.3 book - Part 97 of 184
PDF
The Ring programming language version 1.7 book - Part 113 of 196
PDF
The Ring programming language version 1.5.1 book - Part 80 of 180
PDF
The Ring programming language version 1.10 book - Part 133 of 212
PPT
The Ring programming language version 1.5.1 book - Part 84 of 180
The Ring programming language version 1.6 book - Part 91 of 189
The Ring programming language version 1.7 book - Part 118 of 196
The Ring programming language version 1.5.3 book - Part 97 of 184
The Ring programming language version 1.7 book - Part 113 of 196
The Ring programming language version 1.5.1 book - Part 80 of 180
The Ring programming language version 1.10 book - Part 133 of 212

What's hot (8)

ZIP
Cleanup and new optimizations in WPython 1.1
PDF
The Ring programming language version 1.2 book - Part 61 of 84
PPTX
NSOperation objective-c
PDF
Introduction to ATS plugins
PDF
The Ring programming language version 1.5.1 book - Part 77 of 180
PDF
The Ring programming language version 1.9 book - Part 126 of 210
PDF
[Pgday.Seoul 2017] 3. PostgreSQL WAL Buffers, Clog Buffers Deep Dive - 이근오
PDF
The Ring programming language version 1.10 book - Part 106 of 212
Cleanup and new optimizations in WPython 1.1
The Ring programming language version 1.2 book - Part 61 of 84
NSOperation objective-c
Introduction to ATS plugins
The Ring programming language version 1.5.1 book - Part 77 of 180
The Ring programming language version 1.9 book - Part 126 of 210
[Pgday.Seoul 2017] 3. PostgreSQL WAL Buffers, Clog Buffers Deep Dive - 이근오
The Ring programming language version 1.10 book - Part 106 of 212
Ad

Similar to The Ring programming language version 1.8 book - Part 123 of 202 (20)

PDF
The Ring programming language version 1.2 book - Part 64 of 84
PDF
The Ring programming language version 1.5.3 book - Part 96 of 184
PDF
The Ring programming language version 1.3 book - Part 66 of 88
PDF
The Ring programming language version 1.5.4 book - Part 87 of 185
PDF
The Ring programming language version 1.3 book - Part 67 of 88
PDF
The Ring programming language version 1.9 book - Part 130 of 210
PDF
The Ring programming language version 1.10 book - Part 132 of 212
PDF
The Ring programming language version 1.5.1 book - Part 83 of 180
PDF
The Ring programming language version 1.6 book - Part 90 of 189
PDF
The Ring programming language version 1.8 book - Part 122 of 202
PDF
The Ring programming language version 1.7 book - Part 117 of 196
PDF
The Ring programming language version 1.5.2 book - Part 84 of 181
PDF
The Ring programming language version 1.5.3 book - Part 95 of 184
PDF
The Ring programming language version 1.8 book - Part 124 of 202
PDF
The Ring programming language version 1.7 book - Part 115 of 196
PDF
The Ring programming language version 1.3 book - Part 65 of 88
PPTX
Temperature sensor with a led matrix display (arduino controlled)
PDF
The Ring programming language version 1.4 book - Part 23 of 30
PDF
The Ring programming language version 1.2 book - Part 62 of 84
PDF
The Ring programming language version 1.10 book - Part 131 of 212
The Ring programming language version 1.2 book - Part 64 of 84
The Ring programming language version 1.5.3 book - Part 96 of 184
The Ring programming language version 1.3 book - Part 66 of 88
The Ring programming language version 1.5.4 book - Part 87 of 185
The Ring programming language version 1.3 book - Part 67 of 88
The Ring programming language version 1.9 book - Part 130 of 210
The Ring programming language version 1.10 book - Part 132 of 212
The Ring programming language version 1.5.1 book - Part 83 of 180
The Ring programming language version 1.6 book - Part 90 of 189
The Ring programming language version 1.8 book - Part 122 of 202
The Ring programming language version 1.7 book - Part 117 of 196
The Ring programming language version 1.5.2 book - Part 84 of 181
The Ring programming language version 1.5.3 book - Part 95 of 184
The Ring programming language version 1.8 book - Part 124 of 202
The Ring programming language version 1.7 book - Part 115 of 196
The Ring programming language version 1.3 book - Part 65 of 88
Temperature sensor with a led matrix display (arduino controlled)
The Ring programming language version 1.4 book - Part 23 of 30
The Ring programming language version 1.2 book - Part 62 of 84
The Ring programming language version 1.10 book - Part 131 of 212
Ad

More from Mahmoud Samir Fayed (20)

PDF
The Ring programming language version 1.10 book - Part 212 of 212
PDF
The Ring programming language version 1.10 book - Part 211 of 212
PDF
The Ring programming language version 1.10 book - Part 210 of 212
PDF
The Ring programming language version 1.10 book - Part 208 of 212
PDF
The Ring programming language version 1.10 book - Part 207 of 212
PDF
The Ring programming language version 1.10 book - Part 205 of 212
PDF
The Ring programming language version 1.10 book - Part 206 of 212
PDF
The Ring programming language version 1.10 book - Part 204 of 212
PDF
The Ring programming language version 1.10 book - Part 203 of 212
PDF
The Ring programming language version 1.10 book - Part 202 of 212
PDF
The Ring programming language version 1.10 book - Part 201 of 212
PDF
The Ring programming language version 1.10 book - Part 200 of 212
PDF
The Ring programming language version 1.10 book - Part 199 of 212
PDF
The Ring programming language version 1.10 book - Part 198 of 212
PDF
The Ring programming language version 1.10 book - Part 197 of 212
PDF
The Ring programming language version 1.10 book - Part 196 of 212
PDF
The Ring programming language version 1.10 book - Part 195 of 212
PDF
The Ring programming language version 1.10 book - Part 194 of 212
PDF
The Ring programming language version 1.10 book - Part 193 of 212
PDF
The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 192 of 212

Recently uploaded (20)

PPTX
CHAPTER 2 - PM Management and IT Context
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Nekopoi APK 2025 free lastest update
PPTX
history of c programming in notes for students .pptx
PDF
top salesforce developer skills in 2025.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
AI in Product Development-omnex systems
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Introduction to Artificial Intelligence
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
L1 - Introduction to python Backend.pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Essential Infomation Tech presentation.pptx
CHAPTER 2 - PM Management and IT Context
How to Choose the Right IT Partner for Your Business in Malaysia
Nekopoi APK 2025 free lastest update
history of c programming in notes for students .pptx
top salesforce developer skills in 2025.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
AI in Product Development-omnex systems
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
wealthsignaloriginal-com-DS-text-... (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Introduction to Artificial Intelligence
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
How Creative Agencies Leverage Project Management Software.pdf
L1 - Introduction to python Backend.pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Design an Analysis of Algorithms I-SECS-1021-03
PTS Company Brochure 2025 (1).pdf.......
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
VVF-Customer-Presentation2025-Ver1.9.pptx
Essential Infomation Tech presentation.pptx

The Ring programming language version 1.8 book - Part 123 of 202

  • 1. Ring Documentation, Release 1.8 • SDL_bool SDL_HasAVX(void) • SDL_bool SDL_HasMMX(void) • SDL_bool SDL_HasRDTSC(void) • SDL_bool SDL_HasSSE(void) • SDL_bool SDL_HasSSE2(void) • SDL_bool SDL_HasSSE3(void) • SDL_bool SDL_HasSSE41(void) • SDL_bool SDL_HasSSE42(void) • SDL_PowerState SDL_GetPowerInfo(int *secs,int *pct) • double SDL_acos(double x) • int IMG_Init(int flags) • void IMG_Quit(void) • SDL_Surface *IMG_Load(const char *file) • SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc) • SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type) • SDL_Surface *IMG_LoadCUR_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadBMP_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadPNM_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadXPM_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadXCF_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadGIF_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadTIF_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadLBM_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src) • SDL_Surface *IMG_ReadXPMFromArray(char **xpm) • int IMG_isCUR(SDL_RWops *src) • int IMG_isICO(SDL_RWops *src) • int IMG_isBMP(SDL_RWops *src) • int IMG_isPNM(SDL_RWops *src) • int IMG_isXPM(SDL_RWops *src) • int IMG_isXCF(SDL_RWops *src) • int IMG_isPCX(SDL_RWops *src) 1191
  • 2. Ring Documentation, Release 1.8 • int IMG_isGIF(SDL_RWops *src) • int IMG_isJPG(SDL_RWops *src) • int IMG_isTIF(SDL_RWops *src) • int IMG_isPNG(SDL_RWops *src) • int IMG_isLBM(SDL_RWops *src) • int IMG_isXV(SDL_RWops *src) • int TTF_Init(void) • int TTF_WasInit(void) • void TTF_Quit(void) • TTF_Font *TTF_OpenFont(const char *file, int ptsize) • TTF_Font *TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize) • TTF_Font *TTF_OpenFontIndex(const char *file, int ptsize, long index) • TTF_Font *TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index) • void TTF_CloseFont(TTF_Font *font) • void TTF_ByteSwappedUNICODE(int swapped) • int TTF_GetFontStyle(TTF_Font *font) • void TTF_SetFontStyle(TTF_Font *font, int style) • int TTF_GetFontOutline(TTF_Font *font) • void TTF_SetFontOutline(TTF_Font *font, int outline) • int TTF_GetFontHinting(TTF_Font *font) • void TTF_SetFontHinting(TTF_Font *font, int hinting) • int TTF_GetFontKerning(TTF_Font *font) • void TTF_SetFontKerning(TTF_Font *font, int allowed) • int TTF_FontHeight(const TTF_Font *font) • int TTF_FontAscent(const TTF_Font *font) • int TTF_FontDescent(const TTF_Font *font) • int TTF_FontLineSkip(const TTF_Font *font) • long TTF_FontFaces(const TTF_Font *font) • int TTF_FontFaceIsFixedWidth(const TTF_Font *font) • char *TTF_FontFaceFamilyName(const TTF_Font *font) • char *TTF_FontFaceStyleName(const TTF_Font *font) • int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch) • int TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance) • int TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h) • int TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h) • int TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h) 1192
  • 3. Ring Documentation, Release 1.8 • SDL_Surface *TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg) • SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font, const char *text,SDL_Color fg) • SDL_Surface *TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text,SDL_Color fg) • SDL_Surface *TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg) • SDL_Surface *TTF_RenderText_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg) • SDL_Surface *TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg) • SDL_Surface *TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text,SDL_Color fg, SDL_Color bg) • SDL_Surface *TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg,SDL_Color bg) • SDL_Surface *TTF_RenderText_Blended(TTF_Font *font, const char *text,SDL_Color fg) • SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text,SDL_Color fg) • SDL_Surface *TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text,SDL_Color fg) • SDL_Surface *TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg) • int Mix_Init(int flags) • void Mix_Quit(void) • int Mix_OpenAudio(int frequency, Uint16 format, int channels, int chunksize) • void Mix_CloseAudio(void) • int Mix_QuerySpec(int *frequency, Uint16 *format, int *channels) • int Mix_GetNumChunkDecoders(void) • const char *Mix_GetChunkDecoder(int index) • Mix_Chunk *Mix_LoadWAV(char *file) • Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc) • Mix_Chunk *Mix_QuickLoad_WAV(Uint8 *mem) • void Mix_FreeChunk(Mix_Chunk *chunk) • int Mix_AllocateChannels(int numchans) • int Mix_Volume(int channel, int volume) • int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops) • int Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks) • int Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms) • int Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk,int loops, int ms, int ticks) • void Mix_Pause(int channel) • void Mix_Resume(int channel) • int Mix_HaltChannel(int channel) • int Mix_ExpireChannel(int channel, int ticks) • int Mix_FadeOutChannel(int channel, int ms) • int Mix_Paused(int channel) 1193
  • 4. Ring Documentation, Release 1.8 • Mix_Fading Mix_FadingChannel(int which) • Mix_Chunk *Mix_GetChunk(int channel) • int Mix_ReserveChannels(int num) • int Mix_GroupChannel(int which, int tag) • int Mix_GroupChannels(int from, int to, int tag) • int Mix_GroupCount(int tag) • int Mix_GroupAvailable(int tag) • int Mix_GroupOldest(int tag) • int Mix_GroupNewer(int tag) • int Mix_FadeOutGroup(int tag, int ms) • int Mix_HaltGroup(int tag) • int Mix_GetNumMusicDecoders(void) • const char *Mix_GetMusicDecoder(int index) • Mix_Music *Mix_LoadMUS(const char *file) • void Mix_FreeMusic(Mix_Music *music) • int Mix_PlayMusic(Mix_Music *music, int loops) • int Mix_FadeInMusic(Mix_Music *music, int loops, int ms) • int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position) • int Mix_PlayingMusic(void) • int Mix_PausedMusic(void) • Mix_Fading Mix_FadingMusic(void) • void *Mix_GetMusicHookData(void) • int Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d,void *arg) • int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f) • int Mix_UnregisterAllEffects(int channel) • int Mix_SetDistance(int channel, Uint8 distance) • int Mix_SetPosition(int channel, Sint16 angle, Uint8 distance) • int Mix_SetReverseStereo(int channel, int flip) • int SDLNet_Init(void) • void SDLNet_Quit(void) • char *SDLNet_GetError(void) • void SDLNet_Write16(Uint16 value, void *area) • void SDLNet_Write32(Uint32 value, void *area) • Uint16 SDLNet_Read16(void *area) • Uint32 SDLNet_Read32(void *area) • int SDLNet_ResolveHost(IPaddress *address, const char *host, Uint16 port) 1194
  • 5. Ring Documentation, Release 1.8 • const char *SDLNet_ResolveIP(IPaddress *address) • TCPsocket SDLNet_TCP_Open(IPaddress *ip) • void SDLNet_TCP_Close(TCPsocket sock) • TCPsocket SDLNet_TCP_Accept(TCPsocket server) • IPaddress *SDLNet_TCP_GetPeerAddress(TCPsocket sock) • int SDLNet_TCP_Send(TCPsocket sock, const void *data, int len) • int SDLNet_TCP_Recv(TCPsocket sock, void *data, int maxlen) • UDPsocket SDLNet_UDP_Open(Uint16 port) • void SDLNet_UDP_Close(UDPsocket sock) • int SDLNet_UDP_Bind(UDPsocket sock, int channel, IPaddress *address) • void SDLNet_UDP_Unbind(UDPsocket sock, int channel) • IPaddress *SDLNet_UDP_GetPeerAddress(UDPsocket sock, int channel) • int SDLNet_UDP_Send(UDPsocket sock, int channel, UDPpacket *packet) • int SDLNet_UDP_Recv(UDPsocket sock, UDPpacket *packet) • int SDLNet_UDP_SendV(UDPsocket sock, UDPpacket **packetV, int npackets) • int SDLNet_UDP_RecvV(UDPsocket sock, UDPpacket **packetV) • UDPpacket *SDLNet_AllocPacket(int size) • int SDLNet_ResizePacket(UDPpacket *packet, int size) • void SDLNet_FreePacket(UDPpacket *packet) • UDPpacket **SDLNet_AllocPacketV(int howmany, int size) • void SDLNet_FreePacketV(UDPpacket **packetV) • SDLNet_SocketSet SDLNet_AllocSocketSet(int maxsockets) • void SDLNet_FreeSocketSet(SDLNet_SocketSet set) • int SDLNet_AddSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock) • int SDLNet_TCP_AddSocket(SDLNet_SocketSet set, TCPsocket sock) • int SDLNet_UDP_AddSocket(SDLNet_SocketSet set, UDPsocket sock) • int SDLNet_DelSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock) • int SDLNet_TCP_DelSocket(SDLNet_SocketSet set, TCPsocket sock) • int SDLNet_UDP_DelSocket(SDLNet_SocketSet set, UDPsocket sock) • int SDLNet_CheckSockets(SDLNet_SocketSet set, Uint32 timeout) • int SDLNet_SocketReady(TCPsocket sock) • int circleRGBA(SDL_Renderer * renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a) 1195
  • 6. CHAPTER NINETY RINGLIBUV FUNCTIONS REFERENCE • int uv_loop_init(uv_loop_t* loop) • int uv_loop_configure(uv_loop_t* loop, uv_loop_option option, int) • int uv_loop_close(uv_loop_t* loop) • uv_loop_t* uv_default_loop(void) • int uv_run(uv_loop_t* loop, uv_run_mode mode) • int uv_loop_alive(const uv_loop_t* loop) • void uv_stop(uv_loop_t* loop) • size_t uv_loop_size(void) • int uv_backend_fd(const uv_loop_t* loop) • int uv_backend_timeout(const uv_loop_t* loop) • uint64_t uv_now(const uv_loop_t* loop) • void uv_update_time(uv_loop_t* loop) • void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg) • void uv_walk_2(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg) • int uv_loop_fork(uv_loop_t* loop) • int uv_is_active(const uv_handle_t* handle) • int uv_is_closing(const uv_handle_t* handle) • void uv_close(uv_handle_t* handle, uv_close_cb close_cb) • void uv_close_2(uv_handle_t* handle, uv_close_cb close_cb) • void uv_ref(uv_handle_t* handle) • void uv_unref(uv_handle_t* handle) • int uv_has_ref(const uv_handle_t* handle) • size_t uv_handle_size(uv_handle_type type) • int uv_send_buffer_size(uv_handle_t* handle, int* value) • int uv_recv_buffer_size(uv_handle_t* handle, int* value) • int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd) • int uv_cancel(uv_req_t* req) 1196
  • 7. Ring Documentation, Release 1.8 • size_t uv_req_size(uv_req_type type) • int uv_timer_init(uv_loop_t* loop, uv_timer_t* handle) • int uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat) • int uv_timer_start_2(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat) • int uv_timer_stop(uv_timer_t* handle) • int uv_timer_again(uv_timer_t* handle) • void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) • uint64_t uv_timer_get_repeat(const uv_timer_t* handle) • int uv_prepare_init(uv_loop_t* loop, uv_prepare_t* prepare) • int uv_prepare_start(uv_prepare_t* prepare, uv_prepare_cb cb) • int uv_prepare_start_2(uv_prepare_t* prepare, uv_prepare_cb cb) • int uv_prepare_stop(uv_prepare_t* prepare) • int uv_check_init(uv_loop_t* loop, uv_check_t* check) • int uv_check_start(uv_check_t* check, uv_check_cb cb) • int uv_check_start_2(uv_check_t* check, uv_check_cb cb) • int uv_check_stop(uv_check_t* check) • int uv_idle_init(uv_loop_t* loop, uv_idle_t* idle) • int uv_idle_start(uv_idle_t* idle, uv_idle_cb cb) • int uv_idle_start_2(uv_idle_t* idle, uv_idle_cb cb) • int uv_idle_stop(uv_idle_t* idle) • int uv_async_init(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb) • int uv_async_init_2(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb) • int uv_async_send(uv_async_t* async) • int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd) • int uv_poll_init_socket(uv_loop_t* loop, uv_poll_t* handle, uv_os_sock_t socket) • int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb cb) • int uv_poll_start_2(uv_poll_t* handle, int events, uv_poll_cb cb) • int uv_poll_stop(uv_poll_t* poll) • int uv_signal_init(uv_loop_t* loop, uv_signal_t* signal) • int uv_signal_start(uv_signal_t* signal, uv_signal_cb cb, int signum) • int uv_signal_start_2(uv_signal_t* signal, uv_signal_cb cb, int signum) • int uv_signal_start_oneshot(uv_signal_t* signal, uv_signal_cb cb, int signum) • int uv_signal_start_oneshot_2(uv_signal_t* signal, uv_signal_cb cb, int signum) • int uv_signal_stop(uv_signal_t* signal) • void uv_disable_stdio_inheritance(void) • int uv_spawn(uv_loop_t* loop, uv_process_t* handle, const uv_process_options_t* options) 1197
  • 8. Ring Documentation, Release 1.8 • int uv_process_kill(uv_process_t* handle, int signum) • int uv_kill(int pid, int signum) • int uv_shutdown(uv_shutdown_t* req, uv_stream_t* handle, uv_shutdown_cb cb) • int uv_shutdown_2(uv_shutdown_t* req, uv_stream_t* handle, uv_shutdown_cb cb) • int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb) • int uv_listen_2(uv_stream_t* stream, int backlog, uv_connection_cb cb) • int uv_accept(uv_stream_t* server, uv_stream_t* client) • int uv_read_start(uv_stream_t* stream, uv_alloc_cb alloc_cb, uv_read_cb read_cb) • int uv_read_start_2(uv_stream_t* stream, uv_alloc_cb alloc_cb, uv_read_cb read_cb) • int uv_read_stop(uv_stream_t*) • int uv_write(uv_write_t* req, uv_stream_t* handle, uv_buf_t *bufs, unsigned int nbufs, uv_write_cb cb) • int uv_write_2(uv_write_t* req, uv_stream_t* handle, uv_buf_t *bufs, unsigned int nbufs, uv_write_cb cb) • int uv_write2(uv_write_t* req, uv_stream_t* handle, uv_buf_t bufs, unsigned int nbufs, uv_stream_t send_handle, uv_write_cb cb) • int uv_write2_2(uv_write_t* req, uv_stream_t* handle, uv_buf_t bufs, unsigned int nbufs, uv_stream_t send_handle, uv_write_cb cb) • int uv_try_write(uv_stream_t* handle, uv_buf_t *bufs, unsigned int nbufs) • int uv_is_readable(const uv_stream_t* handle) • int uv_is_writable(const uv_stream_t* handle) • int uv_stream_set_blocking(uv_stream_t* handle, int blocking) • int uv_tcp_init(uv_loop_t* loop, uv_tcp_t* handle) • int uv_tcp_init_ex(uv_loop_t* loop, uv_tcp_t* handle, unsigned int flags) • int uv_tcp_open(uv_tcp_t* handle, uv_os_sock_t sock) • int uv_tcp_nodelay(uv_tcp_t* handle, int enable) • int uv_tcp_keepalive(uv_tcp_t* handle, int enable, unsigned int delay) • int uv_tcp_simultaneous_accepts(uv_tcp_t* handle, int enable) • int uv_tcp_bind(uv_tcp_t *handle,sockaddr *addr,unsigned int flags) • int uv_tcp_getsockname(const uv_tcp_t* handle, struct sockaddr* name, int* namelen) • int uv_tcp_getpeername(const uv_tcp_t* handle, struct sockaddr* name, int* namelen) • int uv_tcp_connect(uv_connect_t* req, uv_tcp_t* handle, sockaddr * addr, uv_connect_cb cb) • int uv_tcp_connect_2(uv_connect_t* req, uv_tcp_t* handle, sockaddr * addr, uv_connect_cb cb) • int uv_pipe_init(uv_loop_t* loop, uv_pipe_t* handle, int ipc) • int uv_pipe_open(uv_pipe_t* handle, uv_file file) • int uv_pipe_bind(uv_pipe_t* handle, const char * name) • void uv_pipe_connect(uv_connect_t* req, uv_pipe_t* handle, const char * name, uv_connect_cb cb) • void uv_pipe_connect_2(uv_connect_t* req, uv_pipe_t* handle, const char * name, uv_connect_cb cb) • int uv_pipe_getsockname(const uv_pipe_t* handle, char* buffer, size_t* size) 1198
  • 9. Ring Documentation, Release 1.8 • int uv_pipe_getpeername(const uv_pipe_t* handle, char* buffer, size_t* size) • void uv_pipe_pending_instances(uv_pipe_t* handle, int count) • int uv_pipe_pending_count(uv_pipe_t* handle) • uv_handle_type uv_pipe_pending_type(uv_pipe_t* handle) • int uv_pipe_chmod(uv_pipe_t* handle, int flags) • int uv_tty_init(uv_loop_t* loop, uv_tty_t* handle, uv_file fd, int readable) • int uv_tty_set_mode(uv_tty_t* handle, uv_tty_mode_t mode) • int uv_tty_reset_mode(void) • int uv_tty_get_winsize(uv_tty_t* handle, int* width, int* height) • int uv_udp_init(uv_loop_t* loop, uv_udp_t* handle) • int uv_udp_init_ex(uv_loop_t* loop, uv_udp_t* handle, unsigned int flags) • int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock) • int uv_udp_bind(uv_udp_t* handle, sockaddr * addr, unsigned int flags) • int uv_udp_getsockname(const uv_udp_t* handle, struct sockaddr* name, int* namelen) • int uv_udp_set_membership(uv_udp_t* handle, const char * multicast_addr, const char * interface_addr, uv_membership membership) • int uv_udp_set_multicast_loop(uv_udp_t* handle, int on) • int uv_udp_set_multicast_ttl(uv_udp_t* handle, int ttl) • int uv_udp_set_multicast_interface(uv_udp_t* handle, const char * interface_addr) • int uv_udp_set_broadcast(uv_udp_t* handle, int on) • int uv_udp_set_ttl(uv_udp_t* handle, int ttl) • int uv_udp_send(uv_udp_send_t* req, uv_udp_t* handle, uv_buf_t *bufs, unsigned int nbufs, sockaddr * addr, uv_udp_send_cb send_cb) • int uv_udp_send_2(uv_udp_send_t* req, uv_udp_t* handle, uv_buf_t *bufs, unsigned int nbufs, sockaddr * addr, uv_udp_send_cb send_cb) • int uv_udp_try_send(uv_udp_t* handle, uv_buf_t *bufs, unsigned int nbufs, sockaddr * addr) • int uv_udp_recv_start(uv_udp_t* handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb) • int uv_udp_recv_start_2(uv_udp_t* handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb) • int uv_udp_recv_stop(uv_udp_t* handle) • int uv_fs_event_init(uv_loop_t* loop, uv_fs_event_t* handle) • int uv_fs_event_start(uv_fs_event_t* handle, uv_fs_event_cb cb, const char * path, unsigned int flags) • int uv_fs_event_start_2(uv_fs_event_t* handle, uv_fs_event_cb cb, const char * path, unsigned int flags) • int uv_fs_event_stop(uv_fs_event_t* handle) • int uv_fs_event_getpath(uv_fs_event_t* handle, char* buffer, size_t* size) • int uv_fs_poll_init(uv_loop_t* loop, uv_fs_poll_t* handle) • int uv_fs_poll_start(uv_fs_poll_t* handle, uv_fs_poll_cb poll_cb, const char * path, unsigned int interval) • int uv_fs_poll_start_2(uv_fs_poll_t* handle, uv_fs_poll_cb poll_cb, const char * path, unsigned int interval) 1199
  • 10. Ring Documentation, Release 1.8 • int uv_fs_poll_stop(uv_fs_poll_t* handle) • int uv_fs_poll_getpath(uv_fs_poll_t* handle, char* buffer, size_t* size) • void uv_fs_req_cleanup(uv_fs_t* req) • int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) • int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char * path, int flags, int mode, uv_fs_cb cb) • int uv_fs_read(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_buf_t *bufs, unsigned int nbufs, int64_t offset, uv_fs_cb cb) • int uv_fs_unlink(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb) • int uv_fs_write(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_buf_t *bufs, unsigned int nbufs, int64_t offset, uv_fs_cb cb) • int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char * path, int mode, uv_fs_cb cb) • int uv_fs_mkdtemp(uv_loop_t* loop, uv_fs_t* req, const char * tpl, uv_fs_cb cb) • int uv_fs_rmdir(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb) • int uv_fs_scandir(uv_loop_t* loop, uv_fs_t* req, const char * path, int flags, uv_fs_cb cb) • int uv_fs_scandir_next(uv_fs_t* req, uv_dirent_t* ent) • int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb) • int uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) • int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb) • int uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, uv_fs_cb cb) • int uv_fs_fsync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) • int uv_fs_fdatasync(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) • int uv_fs_ftruncate(uv_loop_t* loop, uv_fs_t* req, uv_file file, int64_t offset, uv_fs_cb cb) • int uv_fs_copyfile(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, int flags, uv_fs_cb cb) • int uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file out_fd, uv_file in_fd, int64_t in_offset, size_t length, uv_fs_cb cb) • int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char * path, int mode, uv_fs_cb cb) • int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char * path, int mode, uv_fs_cb cb) • int uv_fs_fchmod(uv_loop_t* loop, uv_fs_t* req, uv_file file, int mode, uv_fs_cb cb) • int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char * path, double atime, double mtime, uv_fs_cb cb) • int uv_fs_futime(uv_loop_t* loop, uv_fs_t* req, uv_file file, double atime, double mtime, uv_fs_cb cb) • int uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, uv_fs_cb cb) • int uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char * path, const char * new_path, int flags, uv_fs_cb cb) • int uv_fs_readlink(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb) • int uv_fs_realpath(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_fs_cb cb) • int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char * path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb) • int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb) 1200