# memberdef

refid: a8b45745ccfc9143b8018fffcf7c4c0d3
name: answer_to_connection
definition: int answer_to_connection
type: int
briefdescription: answer to the mapserver Http request
argsstring:
(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls)

detaileddescription:
\return it returns an integer providing the status of the response
\param parameters it took many usefuls parameters as it's recommended in the microhttp library documentation


refid: af7e8fb860db3c87ed3bec362216a5c7c
name: get_ap_mac
definition: void get_ap_mac
type: void
argsstring: (u_char **mac, char *interface)
briefdescription: gets the waypoint wifi mac address
detaileddescription:
\param mac a string which will contain the founded mac address
\param interface the interface of the wifi


refid: ae44fbcd3fb8dd7a4a9015cf282b16406
name: add_value
definition: void add_value
type: void
argsstring: (Deque *list, double value)
briefdescription: add_value adds a new RSSI value at the end of the deque.
detaileddescription:
\param the deque to append the element to.
\param value the RSSI value (dBm, do not forget to convert when inserting!)


refid: a24453a17eaee3f01419138bd3350031e
name: add_element
definition: Element* add_element
type: Element *
argsstring: (Element **list, u_char *mac_value)
briefdescription: add_element adds an element (a new device node) to the list. Elements shall be ordered.
detaileddescription:
\return the added element pointer.
\param list a pointer to the list head pointer.
\param mac_value the MAC address of the new node to be added.


refid: a24da2773bae32fa61d7575b189c3cbed
name: mac_maching
definition: unsigned int mac_maching
type: unsigned int
argsstring: (u_char *mac1, u_char *mac2)
briefdescription: This function makes the comparison of two mac addresses to check if they are equals.
detaileddescription:
\return it return 0 if they are not equal and 1 if they are equal
\param mac1 the first string mac address
\param mac2 the second string mac address


refid: a6c7015cd077f7305b2733eb8b9817f97
name: find_mac
definition: Element* find_mac
type: Element *
argsstring: (Element *list, u_char *mac_value)
briefdescription: find_mac looks up for a MAC address in the list.
detaileddescription:
\return a pointer to the corresponding element, NULL if not found.
\param list the list head pointer.
\param mac_value the MAC address to search.


refid: a215f49fa181cccf9bac2400da4215bb2
name: find_deque
definition: Element* find_deque
type: Element *
argsstring: (Element *list, Deque *deq)
briefdescription: This function find a specific Deque in the Element List.
detaileddescription:
\return it return a pointer to the Element in which the deque is located
\param list the Element list head pointer
\param deq the address of the Deque to find


refid: af2c0c85c2a2a3efefa7c5dc3c03c3e4a
name: calculate_avg
definition: void calculate_avg
type: void
argsstring: (Element **list, u_char *mac_value, u_char *nb_samples, u_char *avg_value)
briefdescription: Calculate avg ss values from a given string mac address.
detaileddescription:
\param mac_value the string MAC address necessary to identify the device to which calculation is needed.
\param list a pointer to the list head pointer.
\param nb_samples is a pointer that will contain the number of sample we need to know.
\param avg_value is a pointer that will contain the average rssi_value based on the captured samples.


refid: a41893db8a4089cb1c64fe72069044637
name: decrement_all_deadlines
definition: void decrement_all_deadlines
type: void
argsstring: (Element *list)
detaileddescription: \param list The Element list head pointer
briefdescription:
This function decrement every second the deadline value of all the samples included in an element list.


