Commit graph

652 commits

Author SHA1 Message Date
Christian Thaeter
ea97119fa6 add a function to move llist nodes around 2008-08-11 10:12:05 +02:00
Christian Thaeter
f0cf49d753 WIP configitem brainstorming 2008-08-11 09:20:49 +02:00
Christian Thaeter
7b3fcfdcb3 Configitem brainstorm 2008-08-10 19:38:31 +02:00
Christian Thaeter
3dff3f70fc remove const from the filename in struct file, some gcc version barfs on it 2008-08-10 17:23:52 +02:00
Christian Thaeter
746c03fb04 Merge commit 'LUMIERA/master' into backend
* commit 'LUMIERA/master':
  Corrected some tabs, missing dependancies in src/gui/Makefile.am
  Initial implementation of I-Beam tool. Needs more work
  Reinstated a small efficiency
  Tidied and simplified video display widget, and added cursor support to
  Added a separator between tool groups
  Temporarily bodged the icon source directory
  Added code to render icons as part of the build process
  Added basic support for multiple tools in the timeline view
  Implemented new icon workflow
  Fixed scroll layout loop bug.
  Set the page size of the horizontal timeline scroll bar
  Retired VideoTrack - all tracks are the same
2008-08-10 14:17:04 +02:00
Christian Thaeter
cf3c601a77 Config type for 'words' and some tests 2008-08-10 12:28:02 +02:00
Christian Thaeter
cd8b523550 cosmetics, remove some traces in string config parsing, little doc 2008-08-10 12:28:02 +02:00
Christian Thaeter
830482c46d ooops, typo in the character list for config keys, missed 'wW' 2008-08-10 12:28:02 +02:00
Christian Thaeter
ff35734991 Fixup config to new rwlock SECTION macros 2008-08-10 12:28:02 +02:00
Christian Thaeter
c3c5a3b65c Fixup filedescriptors and filehandlecache for the new mutex handling 2008-08-10 12:28:02 +02:00
Christian Thaeter
32c1546ec1 Move the resource announce/forget into the rwlock init/destroy 2008-08-10 12:27:47 +02:00
Christian Thaeter
8b901567ed getting strings from the config
a string can be either quoted (single or doublequoted), then the text
between this quotes is returned, quotes are escaped by doubling themself,
no chopping at either end is done,

or not quoted then the the tabs and spaces are chopped from the value
at either end.
2008-08-10 12:26:19 +02:00
Christian Thaeter
3be0d38d73 report syntax error in value instead type error 2008-08-10 12:26:19 +02:00
Christian Thaeter
87c7fea4ac allow only lowercase characters, digits, '_' and '.' in keys 2008-08-10 12:26:19 +02:00
Christian Thaeter
eb60e71136 few more tests for the config subsystem 2008-08-10 12:26:19 +02:00
Christian Thaeter
bb9f81c08d fixed code to do whats specified, but needs refactoring
even in case of an configuration error the returned value is primed
with the default. The error condition needs still be cleared!

Broken defaults would be unnoticed in case of a double error!
2008-08-10 12:26:19 +02:00
Christian Thaeter
962bceec72 high level getter for 'number' type
WIP: doesn't register the default yet, no configfiles yet

just returning env overrides or defaults
2008-08-10 12:26:19 +02:00
Christian Thaeter
418231219a cosmetics 2008-08-10 12:26:18 +02:00
Christian Thaeter
9a329e0340 basic config value retrieval, just env override, no configfiles yet 2008-08-10 12:26:18 +02:00
Christian Thaeter
116c0e8125 more nobug flags for config, add a rwlock for the config, init/destroy 2008-08-10 12:26:18 +02:00
Christian Thaeter
1ff0583e4c add 'config_typed.c' for the typed high level config interface 2008-08-10 12:26:18 +02:00
Christian Thaeter
b691a9d7bb Simple config init/destroy, beginning of a config-testsuite 2008-08-10 12:26:18 +02:00
Christian Thaeter
c8210708fa skeleton for the config struct 2008-08-10 12:26:18 +02:00
Christian Thaeter
9444fb0267 use 'int' as return values rather than lumiera_err 2008-08-10 12:26:18 +02:00
Christian Thaeter
85e789742f first skeleton for the config loader 2008-08-10 12:26:15 +02:00
Christian Thaeter
0bd886249b throw away the 'references' implementation, we probably don't need it
(could be reincarnated someday later when we find out that we need it)
2008-08-10 12:19:50 +02:00
Christian Thaeter
dde54ec7b0 Adapt the condition implementation to the macro SECTION based approach 2008-08-10 12:19:50 +02:00
Christian Thaeter
d8f59fb722 Simplyfiy resource management
Move the resource announce/forget into the rwlock init/destroy
Move resource announcement/forget into the mutex init/destroy
2008-08-10 12:19:09 +02:00
Christian Thaeter
c11915a4c4 new locking section macros for RWLocks, old acquirer bites the dust 2008-08-10 12:19:09 +02:00
Christian Thaeter
d0b6919eea locking.h bites the dust 2008-08-10 12:19:09 +02:00
Christian Thaeter
b2b205f6db remove unnecessary volatile (forgotten for a test) 2008-08-10 12:19:09 +02:00
Christian Thaeter
777458741a moved the locking tests from test/locking/ to test/library/ 2008-08-10 12:19:09 +02:00
Christian Thaeter
07f06d0d88 big mutex update, dropped old acquirer
Acquiring mutexes is now wraped in a easy to use MUTEX_SECTION macro.
This scheme will be extended for chained lock propagation soon.

Notes:
 * NoBug resourcemanagement is now part of the lower layer,
   RESOURCE_ENTER/RESOUCE_LEAVE are maintained automatically
 * one must still call RESOURCE_ANNOUNCE/RESOURCE_FORGET, because we want
   to maintain high level information about resources.
 * MUTEX_SECTIONS must not be left with any kind of jump
2008-08-10 12:19:09 +02:00
Christian Thaeter
47b5a2667c add LOCKED_SECTION macros to rwlock, fix bug in rwlockacquirer 2008-08-10 12:19:08 +02:00
Christian Thaeter
12feb6e7b8 add 'lumiera_free' as replacement for 'free'
lumiera_free() is for now just a static inline wraper around free()
Later this makes it easier to hook in some resource managing functions
or a Garbage Collector in.

Replaced all current uses of free()
2008-08-10 12:19:08 +02:00
Christian Thaeter
f5df65b0a1 add a translation function to tmpbuf
tmpbuf_tr takes an input string and 2 sets of characters plus a
default character. It produces a output string with all
characters from the first set translated to the correspondending
character in the 2nd set, similar to the shell 'tr' util.
2008-08-10 12:19:08 +02:00
Christian Thaeter
93e126f5ab add a 'lumiera_err' typedef 2008-08-10 12:19:08 +02:00
Christian Thaeter
9826fd180d renamed the uuid to luid
uuid's are somewhat standardized, we use our uid's slightly differently,
so change the name not to be confused with standards.
 * Small fix for luid generation
 * build a 'luidgen' tool which will be used by the interface gen later
 * add emacs vars
 * include the luidgen tool in automake
2008-08-10 12:18:20 +02:00
Joel Holdsworth
c12e134981 Corrected some tabs, missing dependancies in src/gui/Makefile.am 2008-08-09 22:26:36 +01:00
Joel Holdsworth
2082f0843b Initial implementation of I-Beam tool. Needs more work 2008-08-07 20:27:41 +01:00
Joel Holdsworth
45ca590c38 Reinstated a small efficiency 2008-08-04 16:40:38 +01:00
Joel Holdsworth
2ee6f6be62 Tidied and simplified video display widget, and added cursor support to
the ibeam and arrow tool
2008-08-04 16:39:36 +01:00
Joel Holdsworth
fdab62a5d8 Added a separator between tool groups 2008-08-04 12:20:13 +01:00
Joel Holdsworth
744b28502e Temporarily bodged the icon source directory 2008-08-04 12:15:42 +01:00
Joel Holdsworth
04320ae794 Added code to render icons as part of the build process 2008-08-04 12:06:24 +01:00
Joel Holdsworth
17d0883d09 Added basic support for multiple tools in the timeline view 2008-07-30 00:12:37 +01:00
Joel Holdsworth
ecf392968b Implemented new icon workflow 2008-07-28 23:45:20 +01:00
Joel Holdsworth
9bad04751f Fixed scroll layout loop bug. 2008-07-23 23:23:48 +01:00
Mano Stienen
163ba179ed moved documentation from error.c to .h 2008-07-20 16:11:08 +02:00
Joel Holdsworth
4907b19cce Set the page size of the horizontal timeline scroll bar 2008-07-19 16:35:56 +01:00