Abstract access to struct modules[] using get_module().

The goal is to make "struct s_module modules[]" static and prevent
random modules from knowing about it.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8360 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Refactor loops over struct modules[].

Saves a little bit of binary size.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8361 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Init client->is_udp in one place.

Save a little bit of binary size.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8362 4b0bc96b-bc66-0410-9d44-ebda105a78c1
cccshare: Refactor send_card_to_clients().

The function used "cute" trick to skip looping over all clients.

A better way is to split the function, because it makes the code
more readable and even saves a little bit of binary size.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8363 4b0bc96b-bc66-0410-9d44-ebda105a78c1
gbox: Use get_module().

gbox module have no bussiness knowing that it is at pos 6 in struct
modules[]. The correct way of checking for gbox client is checking
{{{get_module(client)->num == R_GBOX}}}.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8364 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Make struct modules[] static.

Now that eveything uses get_module() its time to make struct modules[]
static.

Also refactor accept_connection() and start_listener() this
saves a little bit of binary size.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8365 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Rename client->ctyp to client->module_idx.

Rename ctyp variable in struct s_client to module_idx. The new
name better reflects what the variable is used for.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8366 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Remove four unused variables from struct s_client.

Save at least 148 bytes per client.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8367 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move dvbapi definitions out of globals.h into module-dvbapi.h

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8368 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Move checks for deprecated functions in devtools/check_code.sh

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8369 4b0bc96b-bc66-0410-9d44-ebda105a78c1
freebsd