From: Nicolas B. <nbo...@us...> - 2006-02-22 21:25:10
|
Update of /cvsroot/ddccontrol/ddccontrol/src/ddccontrol In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13046/src/ddccontrol Modified Files: main.c Log Message: Database version 3 (support of generic profiles). Index: main.c =================================================================== RCS file: /cvsroot/ddccontrol/ddccontrol/src/ddccontrol/main.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- main.c 22 Feb 2006 13:25:49 -0000 1.28 +++ main.c 22 Feb 2006 21:25:06 -0000 1.29 @@ -126,8 +126,19 @@ printf(_("[ OK ]\n")); + /* Create caps with all controls. */ + char buf2[4]; + char buffer[256*3+25]; + strcpy(buffer, "(vcp("); + int i; + for (i = 0; i < 256; i++) { + snprintf(buf2, 4, "%02x ", i); + strcat(buffer, buf2); + } + strcat(buffer, "))"); + printf(_("Checking %s integrity...\n"), pnpname); - if (!(mon_db = ddcci_create_db(pnpname, "", 0))) { + if (!(mon_db = ddcci_create_db(pnpname, buffer, 0))) { printf(_("[ FAILED ]\n")); ddcci_release_db(); exit(1); |