#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "samp.h"
Functions | |
| handle_t | samp_newList () |
| Create a new List object. | |
| void | samp_freeList (List list) |
| Free the given List object. | |
| int | samp_listLen (List list) |
| Get number of elements in a List. | |
| void | samp_setStringInList (List list, char *value) |
| Set a string in a List (append). | |
| void | samp_setMapInList (List list, Map map) |
| Set a Map in a List (append). | |
| void | samp_setListInList (List list1, List list2) |
| Set a List in another List (append). | |
| void | samp_setIntInList (List list, int ival) |
| Set an Int in a List (append). | |
| void | samp_setFloatInList (List list, float rval) |
| Set a Float in a List (append). | |
| char * | samp_getStringFromList (List list, int index) |
| Get a string from the List. | |
| Map | samp_getMapFromList (List list, int index) |
| Get a Map from the List. | |
| List | samp_getListFromList (List list, int index) |
| Get a List from the List. | |
| int | samp_getIntFromList (List list, int index) |
| float | samp_getFloatFromList (List list, int index) |
| Get a Float from the List. | |
SAMPLIST.C -- (Internal) interface to support the List structure.
list = samp_newList () samp_freeList (List list)
samp_setStringInList (List list, char *value) samp_setMapInList (List list, Map map) samp_setListInList (List list1, List list2) samp_setIntInList (List list, int val) samp_setFloatInList (List list, float val)
str = samp_getStringFromList (List list, int index) map = samp_getMapFromList (List list, int index) list = samp_getListFromList (List list, int index) ival = samp_getIntFromList (List list, int index) rval = samp_getFloatFromList (List list, int index)
| void samp_freeList | ( | List | list | ) |
Free the given List object.
SAMP_FREELIST -- Free the given List object
| list | List object handle |
Referenced by samp_mapClients().
| float samp_getFloatFromList | ( | List | list, | |
| int | index | |||
| ) |
Get a Float from the List.
SAMP_GETFLOATFROMLIST -- Get a Float from the List
| list | List object handle | |
| index | List index containing the desired value |
Get a List from the List.
Get an Int from the List.
SAMP_GETLISTFROMLIST -- Get a List from the List
| list | List object handle | |
| index | List index containing the List |
| list | List object handle | |
| index | List index containing the desired value |
Get a Map from the List.
SAMP_GETMAPFROMLIST -- Get a Map from the List
| list | List object handle | |
| index | List index containing the Map |
| char* samp_getStringFromList | ( | List | list, | |
| int | index | |||
| ) |
Get a string from the List.
SAMP_GETSTRINGFROMLIST -- Get a string from the List
| list | List object handle | |
| index | List index containing the string |
Referenced by samp_mapClients().
| int samp_listLen | ( | List | list | ) |
Get number of elements in a List.
SAMP_LISTLEN -- Get number of elements in a List.
| list | List object handle |
Referenced by samp_GetRegisteredClients(), samp_GetSubscribedClients(), samp_mapClients(), and samp_tbSelectHandler().
| handle_t samp_newList | ( | void | ) |
Create a new List object.
SAMP_NEWLIST -- Create a new List object
Referenced by samp_GetRegisteredClients(), samp_GetSubscribedClients(), and sampInit().
| void samp_setFloatInList | ( | List | list, | |
| float | rval | |||
| ) |
Set a Float in a List (append).
SAMP_SETFLOATINLIST -- Set a Float in a List (append)
| list1 | List object handle | |
| rval | Float value to be appended |
| void samp_setIntInList | ( | List | list, | |
| int | ival | |||
| ) |
Set an Int in a List (append).
SAMP_SETINTINLIST -- Set an Int in a List (append)
| list1 | List object handle | |
| ival | Integer value to be appended |
Set a List in another List (append).
SAMP_SETLISTINLIST -- Set a List in another List (append)
| list1 | List object handle | |
| list2 | List to be appended |
Set a Map in a List (append).
SAMP_SETMAPINLIST -- Set a Map in a List (append)
| list | List object handle | |
| map | Map object to be set |
| void samp_setStringInList | ( | List | list, | |
| char * | value | |||
| ) |
Set a string in a List (append).
SAMP_SETSTRINGINLIST -- Set a string in a List (append)
| list | List object handle | |
| value | string value to set |
Referenced by samp_GetRegisteredClients(), and samp_GetSubscribedClients().
1.5.9