1 /* Test case for bluetooth_checkservicename */
5 #include "../libgammu/device/devfunc.h" /* For bluetooth_checkservicename */
6 #include "../libgammu/gsmstate.h" /* For statemachine internals */
11 void single_test(GSM_ConnectionType conn
, const char *name
)
13 s
->ConnectionType
= conn
;
14 if (bluetooth_checkservicename(s
, name
) == 0) {
15 fprintf(stderr
, "Test \"%s\" failed!\n", name
);
20 int main(int argc UNUSED
, char **argv UNUSED
)
22 /* Allocates state machine */
23 s
= GSM_AllocStateMachine();
25 printf("Could not allocate state machine!\n");
29 single_test(GCT_BLUEPHONET
, "Nokia PC Suite");
30 single_test(GCT_BLUEOBEX
, "OBEX File Transfer");
31 single_test(GCT_BLUEOBEX
, "IrMC Sync");
32 single_test(GCT_BLUEOBEX
, "OBEX");
33 single_test(GCT_BLUEAT
, "SerialPort1");
34 single_test(GCT_BLUEAT
, "Dial-up networking Gateway");
35 single_test(GCT_BLUEAT
, "COM");
36 single_test(GCT_BLUEAT
, "Serial Server");
38 /* Free state machine */
39 GSM_FreeStateMachine(s
);
43 /* Editor configuration
44 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: