diff options
Diffstat (limited to 'tests/test_capabilities.c')
-rw-r--r-- | tests/test_capabilities.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/test_capabilities.c b/tests/test_capabilities.c deleted file mode 100644 index 7d12955..0000000 --- a/tests/test_capabilities.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -#include <dapi/comm.h> -#include <dapi/calls.h> - -int main() - { - intarr capabilities; - int i; - DapiConnection* conn = dapi_connectAndInit(); - if( conn == NULL ) - { - fprintf( stderr, "Cannot connect!\n" ); - return 1; - } - if( dapi_Capabilities( conn, &capabilities )) - { - int has_mailto = 0; - printf( "Capabilities:" ); - for( i = 0; - i < capabilities.count; - ++i ) - { - printf( " %d", capabilities.data[ i ] ); - if( capabilities.data[ i ] == DAPI_COMMAND_MAILTO ) - has_mailto = 1; - } - printf( "\nHas mailto: %d\n", has_mailto ); - } - else - fprintf( stderr, "Capabilities call failed!\n" ); - dapi_close( conn ); - return 0; - } |