Skip to content
Snippets Groups Projects
common.c 355 B
Newer Older
  • Learn to ignore specific revisions
  • #include <stdio.h>
    
    #include <libvoice.h>
    
    struct connection_t *connections = NULL;
    int max_num_connections = 0;
    
    int voice_connection_find(int line, int conId)
    {
    	int conIdx;
    
    	for(conIdx = 0; conIdx < max_num_connections; conIdx++) {
    		if(connections[conIdx].line == line && connections[conIdx].conId == conId) {
    			return conIdx;
    		}
    	}
    
    	return -1;
    }