1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Made PRDevice::Reset public for use in pinproctest and added a parameter to allow the disabled driver and switch rule structures to be written to the P-ROC.

This commit is contained in:
gstellenberg
2009-05-27 19:10:44 -05:00
parent a26a9f5ce8
commit 06442264a1
5 changed files with 39 additions and 35 deletions

View File

@@ -415,6 +415,10 @@ int main(int argc, const char **argv)
RunLoop(proc);
// Clean up P-ROC.
printf("Disabling P-ROC drivers and switch rules...\n");
PRReset(proc,true); // Reset the device structs and write them into the device.
// Destroy the P-ROC device handle:
PRDelete(proc);
proc = kPRHandleInvalid;