From: Marcus M. <mar...@us...> - 2006-02-19 09:33:22
|
Update of /cvsroot/gphoto/libgphoto2/libgphoto2_port/ptpip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27312 Modified Files: ptpip.c Log Message: added regexp matcher, so you can specify any host. Index: ptpip.c =================================================================== RCS file: /cvsroot/gphoto/libgphoto2/libgphoto2_port/ptpip/ptpip.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -d -r1.3 -r1.4 --- ptpip.c 19 Feb 2006 09:32:06 -0000 1.3 +++ ptpip.c 19 Feb 2006 09:33:02 -0000 1.4 @@ -122,6 +122,11 @@ _ptpip_resolved ( snprintf (info.name, sizeof(info.name), mdnsi->name); snprintf (info.path, sizeof(info.path), "ptpip:%s:%d", inet_ntoa(inaddr), port); gp_port_info_list_append (mdnsi->list, info); + + /* regexp matcher */ + memset (info.name, 0, sizeof(info.name)); + snprintf (info.path, sizeof(info.path), "^ptpip:"); + gp_port_info_list_append (mdnsi->list, info); } static void |