running configuration and deltas and shit
[CBFWR.git] / libcbfwr / comms.php
index 610959e..a11f9b3 100644 (file)
@@ -26,9 +26,21 @@ class Comms {
                return $config;
        }
        
+       function lockConfigs()
+       {
+               sem_acquire($this->semres);
+       }
+       
+       function unlockConfigs()
+       {
+               sem_release($this->semres);
+       }
+       
        
-       // type = 0 for the main config
+       // type = 0 for the fs config
        // type = 1 for the boot hardware config
+       // type = 2 for running config
+       // type = 3 for web config
        function putConfig($config, $type=0)
        {
                global $MESSAGE_KEY, $LOCKING_KEY, $STORE_KEY;