Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2011-06-23 21:45:45 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2011-06-23 21:45:45 +0400
commit796293dfa96809879d0fc6d8626c10b845bf0a45 (patch)
treeecd8c02b43d74f3c8add0c7ecc84f2470bd1859b /minidlna.c
parent0193a04d307a8f36ab59fa015592d5a14f5aff35 (diff)
* Add PnP-X info for a couple more models.
Diffstat (limited to 'minidlna.c')
-rw-r--r--minidlna.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/minidlna.c b/minidlna.c
index 1e2301a..de01adb 100644
--- a/minidlna.c
+++ b/minidlna.c
@@ -264,22 +264,28 @@ getfriendlyname(char * buf, int len)
}
}
fclose(info);
+ memcpy(pnpx_hwid+4, "01F2", 4);
if( strcmp(modelnumber, "NVX") == 0 )
- memcpy(pnpx_hwid+4, "01F2&amp;DEV_0101", 17);
+ memcpy(pnpx_hwid+17, "0101", 4);
else if( strcmp(modelnumber, "Pro") == 0 ||
strcmp(modelnumber, "Pro 6") == 0 ||
strncmp(modelnumber, "Ultra 6", 7) == 0 )
- memcpy(pnpx_hwid+4, "01F2&amp;DEV_0102", 17);
+ memcpy(pnpx_hwid+17, "0102", 4);
else if( strcmp(modelnumber, "Pro 2") == 0 ||
strncmp(modelnumber, "Ultra 2", 7) == 0 )
- memcpy(pnpx_hwid+4, "01F2&amp;DEV_0103", 17);
+ memcpy(pnpx_hwid+17, "0103", 4);
else if( strcmp(modelnumber, "Pro 4") == 0 ||
strncmp(modelnumber, "Ultra 4", 7) == 0 )
- memcpy(pnpx_hwid+4, "01F2&amp;DEV_0104", 17);
+ memcpy(pnpx_hwid+17, "0104", 4);
else if( strcmp(modelnumber+1, "100") == 0 )
- memcpy(pnpx_hwid+4, "01F2&amp;DEV_0105", 17);
+ memcpy(pnpx_hwid+17, "0105", 4);
else if( strcmp(modelnumber+1, "200") == 0 )
- memcpy(pnpx_hwid+4, "01F2&amp;DEV_0106", 17);
+ memcpy(pnpx_hwid+17, "0106", 4);
+ /* 0107 = Stora */
+ else if( strcmp(modelnumber, "Duo v2") == 0 )
+ memcpy(pnpx_hwid+17, "0108", 4);
+ else if( strcmp(modelnumber, "NV+ v2") == 0 )
+ memcpy(pnpx_hwid+17, "0109", 4);
#else
char * logname;
logname = getenv("LOGNAME");