~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
JACK/example-clients/ipload.c


** Warning: Cannot open xref database.

1 #include <stdio.h> 2 #include <jack/jack.h> 3 4 int 5 main (int argc, char *argv[]) 6 { 7 char *name; 8 char *so_name; 9 char *so_data; 10 11 if (argc < 3) { 12 fprintf (stderr, "usage: %s client-name so-name [ so-data ]\n", argv[0]); 13 return -1; 14 } 15 16 name = argv[1]; 17 so_name = argv[2]; 18 19 if (argc < 4) { 20 so_data = ""; 21 } else { 22 so_data = argv[3]; 23 } 24 25 if (jack_internal_client_new (name, so_name, so_data) != 0) { 26 fprintf (stderr, "could not load %s\n", so_name); 27 return -1; 28 } else { 29 fprintf (stdout, "%s is running.\n", name); 30 return 0; 31 } 32 } 33 34 35

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.