1. 14 Dec, 2002 1 commit
    • gbazin's avatar
      · 215c1a85
      gbazin authored
      * src/misc/objects.c: implemented the FIND_CHILD mode for vlc_list_find().
         vlc_object_get() now increments the refcount of the object so you'll need to release
      the object at some point.
      * src/misc/variables.c, ALL: var_Change() with VLC_VAR_GETLIST now returns a vlc_value_t
      which points to a vlc_list_t.
      215c1a85
  2. 07 Dec, 2002 1 commit
    • gbazin's avatar
      · 0d62cd7d
      gbazin authored
      * ALL: a few updates to the variables API:
        - got rid of the VLC_VAR_COMMAND variable type and introduced the VLC_VAR_ISCOMMAND flag
      instead. This simplifies things and avoid the strange command variables behaviour. Command
      variables will now trigger their callback on var_Set() like any other variables (look in
      modules/control/rc/rc.c for an example).
        - Renamed the VLC_VAR_ISLIST flag into VLC_VAR_HASCHOICE.
        - Added a new VLC_VAR_VOID variable type. This can be useful in conjunction with
      VLC_VAR_ISCOMMAND for instance.
      0d62cd7d
  3. 10 Nov, 2002 1 commit
  4. 17 Oct, 2002 1 commit
    • Sam Hocevar's avatar
      * ./src/misc/variables.c: callback loops are now detected; this means you · ce7d29b2
      Sam Hocevar authored
          can now use var_* functions from within your callback, they can even
          trigger callback themselves, to any level. The main restriction is that
          you shouldn't meddle with a variable that is already being triggered by
          the current thread (other threads will just wait).
        * ./src/misc/objects.c: fixed a deadlock in the "tree" command.
        * ./modules/misc/testsuite/test4.c: added a "callback-test" command to the
          rc interface to test callback loop detection and concurrent triggers.
      ce7d29b2
  5. 14 Oct, 2002 2 commits
    • Sam Hocevar's avatar
      * ./modules/misc/testsuite/test4.c: made the 4th test less CPU intensive · 2f278849
      Sam Hocevar authored
          by making the spawned threads wait a bit longer.
        * ./src/misc/variables.c: added a usage count to the variables; trying to
          create a variable with the same name only increments its refcount.
      2f278849
    • Sam Hocevar's avatar
      * ./modules/misc/testsuite/test4.c: added a stress test module; doesn't get · 112187ec
      Sam Hocevar authored
          compiled yet because it uses the "command" variables I'm about to check
          in. They need to be typed in the rc interface for instance (-I rc). This
          module has two available commands: "signal <int>" which sends the given
          signal to the vlc process, and "stress [<int>]" which performs a series of
          object creation/lookup/destruction, variable creation/setting/destruction
          and thread spawning/joining tests. The optional argument for stress is an
          integer between 1 and 200 (the bigger, the heavier the tests; it may hang
          your machine at around 150, be careful).
      112187ec