This file is indexed.

/usr/share/vala-0.30/vapi/sdl-net.vapi is in valac-0.30-vapi 0.30.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[CCode (cprefix="SDLNet_", cheader_filename="SDL_net.h")]
namespace SDLNet {
	[CCode (cname="SDLNet_Linked_Version")]
	public static SDL.Version linked();

	[CCode (cname="SDLNet_Init")]
	public static int init();

	[CCode (cname="SDLNet_Quit")]
	public static void quit();

	[CCode (cname="SDLNet_Write16")]
	public static void write16(uint16 value, void *area);

	[CCode (cname="SDLNet_Write32")]
	public static void write32(uint value, void *area);

	[CCode (cname="SDLNet_Read16")]
	public static uint16 read16(void *area);

	[CCode (cname="SDLNet_Read32")]
	public static uint read32(void *area);




	[CCode (cname="IPaddress", free_function="g_free", has_type_id=false)]
	public struct IPAddress {
		public uint host;
		public uint16 port;

		[CCode (cname="INADDR_ANY")]
		public const uint ANY;

		[CCode (cname="INADDR_NONE")]
		public const uint NONE;

		[CCode (cname="SDLNet_ResolveHost")]
		public static int from_host(out IPAddress address, string? host, uint16 port);

		[CCode (cname="SDLNet_ResolveIP")]
		public unowned string? lookup();
	}// IPAddress

	[CCode (cname="UDPpacket", free_function="SDLNet_FreePacket")]
	[Compact]
	public class UDPPacket {
		public int channel;
		public uchar *data;
		public int len;
		public int maxlen;
		public int status;
		public IPAddress address;

		[CCode (cname="SDLNet_AllocPacket")]
		public UDPPacket(int size);

		[CCode (cname="SDLNet_ResizePacket")]
		public int resize(int newsize);
	}// UDPPacket

	[CCode (cname="void")]
	[Compact]
	public class Socket {
		public int ready;
	}// Socket

	[CCode (cname="struct _TCPsocket", free_function="SDLNet_TCP_Close")]
	[Compact]
	public class TCPSocket: Socket {
		[CCode (cname="SDLNet_TCP_Open")]
		public TCPSocket(IPAddress ip);

		[CCode (cname="SDLNet_TCP_Accept")]
		public TCPSocket? accept();

		[CCode (cname="SDLNet_TCP_GetPeerAddress")]
		public IPAddress? get_address();

		[CCode (cname="SDLNet_TCP_Send")]
		public int send(uchar[] data);

		[CCode (cname="SDLNet_TCP_Recv")]
		public int receive(uchar[] data);
	}// TCPSocket

	[CCode (cname="struct _UDPsocket", free_function="SDLNet_UDP_Close")]
	[Compact]
	public class UDPSocket: Socket {
		[CCode (cname="SDLNet_UDP_Open")]
		public UDPSocket(uint16 port);

		[CCode (cname="SDLNet_UDP_Bind")]
		public int bind(int channel, IPAddress address);

		[CCode (cname="SDLNet_UDP_Unbind")]
		public void unbind(int channel);

		[CCode (cname="SDLNet_UDP_GetPeerAddress")]
		public IPAddress? get_address(int channel);

		[CCode (cname="SDLNet_UDP_Send")]
		public int send(int channel, UDPPacket packet);

		[CCode (cname="SDLNet_UDP_Recv")]
		public int receive(UDPPacket packet);

		[CCode (cname="SDLNet_UDP_SendV")]
		public int send_many(UDPPacket[] packets);

		[CCode (cname="SDLNet_UDP_RecvV")]
		public int receive_many([CCode (array_length = false)] UDPPacket[] packets);
	}// UDPSocket

	[CCode (cname="struct _SDLNet_SocketSet", free_function="SDLNet_FreeSocketSet")]
	[Compact]
	public class SocketSet {
		[CCode (cname="SDLNet_AllocSocketSet")]
		public SocketSet(int maxsockets);

		[CCode (cname="SDLNet_AddSocket")]
		public int add(Socket socket);

		[CCode (cname="SDLNet_DelSocket")]
		public int remove(Socket socket);

		[CCode (cname="SDLNet_CheckSockets")]
		public int has_data(uint timeout);
	}// SocketSet
}// SDL