summaryrefslogtreecommitdiff
path: root/logger
AgeCommit message (Collapse)AuthorFilesLines
2011-11-24Fail on missing gobject-instrospection makefileNicolas Dufresne1-1/+3
On Debian the gobject-introspection build tools and the .pc are shipped into seperate packages without dependency, which is a packaging bug. To make this bug more obvious, we now fail if the makefile in /usr/share/ is missing. https://bugs.freedesktop.org/show_bug.cgi?id=43200
2011-11-24Post release version bumpNicolas Dufresne1-1/+1
2011-11-18Update check-c-style.sh from telepathy-glibCosimo Alfarano1-0/+13
2011-11-18Replace g_ptr_array_free with g_ptr_array_unrefCosimo Alfarano3-3/+3
2011-11-18Replace g_array_free with g_array_unrefCosimo Alfarano3-5/+5
2011-11-18Replace g_hash_table_destroy with g_hash_table_unrefCosimo Alfarano4-19/+19
2011-11-01Version 0.2.12Nicolas Dufresne2-3/+12
2011-10-31Version 0.2.11Nicolas Dufresne2-3/+20
2011-10-31Improve GObject introspection anotationNicolas Dufresne3-8/+19
2011-10-31Remove call to g_thread_init()Nicolas Dufresne1-12/+0
This is automatically called by g_type_init() since glib 2.23 and is now deprecated. https://bugs.freedesktop.org/show_bug.cgi?id=42284
2011-10-31Fixing some non-quiet actionsNicolas Dufresne2-7/+7
2011-10-31Correctly enable silent build outputNicolas Dufresne1-1/+1
2011-10-14Fix observer singleton and select featuresNicolas Dufresne8-44/+59
2011-07-15Avoid dereferencing NULL pointersVincent Penquerc'h1-25/+39
Use empty strings where a given string cannot be known due to a NULL sender or actor.
2011-06-27Fix action chain not to free result in finishNicolas Dufresne1-2/+5
Freeing result in finish would lead to use after free since GLib push and pop default thread context in complete() calls. Also, it's very bad pratice as _finish() calls are optional.
2011-06-27Post version bumpNicolas Dufresne1-1/+1
2011-05-26version 0.2.10Nicolas Dufresne2-5/+21
2011-05-26test_add_superseding_event: add some edit timestampsDavid Laban1-3/+14
They should be preserved, but shouldn't affect how events are processed.
2011-05-26Use gint64 for timestamps (not guint64)David Laban4-17/+17
2011-05-26Update timestamp recording in text-channelDavid Laban1-10/+38
timestamp == original_message_{sent || received} || message_{sent || received} || now. edit_timestamp == supersedes ? message_{sent || received} || now: 0
2011-05-26Add edit-timestamp, and remove original-timestampDavid Laban3-33/+33
log-store-xml: * store/save edit-timestamp rather than original-timestamp * Also don't let the edit timestamp override the timestamp for where messages are saved (as was the case for original-message). text-event: * s/original/edit/
2011-05-26Revert "Update tests to use original-timestamp"David Laban1-9/+5
This reverts commit 31411d5c9d19678ff862e07c508ff3cf78cbf40a.
2011-05-26Merge branch 'fix-insert-after'Nicolas Dufresne8-89/+119
2011-05-26Optimise _tpl_log_manager_get_filtered_events()Nicolas Dufresne1-44/+9
Use a GQueue and _tpl_event_queue_insert_sorted_after() instead of insert_sorted() which lookup the list everytime. This also has the effect of keeping log order as much as possible when broken timestamp goes backward.
2011-05-26Add a testcase for bug #37288Emilio Pozuelo Monfort1-0/+23
2011-05-26Fix destroy function for get_entities_asyncEmilio Pozuelo Monfort1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=37288
2011-05-26Move event_queue_insert_sorted_after() to utilNicolas Dufresne3-38/+44
2011-05-26Style fix two empty line between functionNicolas Dufresne1-0/+8
2011-05-26Test case where first call is older then any textNicolas Dufresne4-3/+39
2011-05-26Add comment to explain a bit the testsNicolas Dufresne1-0/+4
2011-05-26Fixed initial call event_queue_insert_sorted_after()Nicolas Dufresne2-27/+40
The current code would always insert after the first element.
2011-05-26Fixed initialised but unused warningNicolas Dufresne1-3/+1
2011-05-25Fix warn not checking system() return valueNicolas Dufresne1-1/+4
2011-05-25log-store-xml.c: fix uninitialised variable warningDavid Laban1-1/+1
2011-05-24Update tests to use original-timestampDavid Laban1-5/+9
2011-05-24text-channel: Put original-message-sent/received into original-timestampDavid Laban1-1/+18
Also, s/guint/guint64 in old code.
2011-05-24add_text_event/parse_text_node: use original-timestamp for editsDavid Laban1-4/+31
* Store/parse original-timestamp prop in xml. * Put the event in the file pointed to by original-timestamp * If it doesn't exist, fall back to the message's timestamp.
2011-05-24add_{text,call}_event: s/timestamp/time_str/David Laban1-10/+10
I expect "timestamp" to be a uint64 or a GDateTime, so I'm renaming this variable to avoid confusing name collisions later.
2011-05-24log_store_xml_format_timestamp()David Laban1-2/+8
* factor out log_store_xml_format_timestamp, since we need it for original-timestamp as well
2011-05-24text-event: add original-timestamp propertyDavid Laban2-0/+32
2011-05-24text-event: s/dup_supersedes/get_supersedes/David Laban3-25/+11
Copying and freeing lists of events is a waste of time. Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2011-05-19fixup! fixup! Test message edits that have broken timestampsDavid Laban1-9/+9
cast to GFunc
2011-05-19fixup! fixup! Add tests to cover messages arriving a bit/a lot lateDavid Laban1-2/+2
cast to GFunc
2011-05-19fixup! fixup! Store, save and test message-token and supersedes-tokenDavid Laban1-2/+2
oops: inverted boolean expression
2011-05-19fixup! fixup! log_store_xml_get_events_for_file: replace edited messages.David Laban1-4/+4
event_queue_replace_and_supersede: correct type and s/l/index/
2011-05-19fixup! tpl_text_event_{add,dup}_supersedesDavid Laban1-0/+1
fix whitespace
2011-05-19fixup! Test message edits that have broken timestampsDavid Laban1-9/+22
Note that this also fixes something from "test_add_superseding_event" but rebasing to fix that would cause conflicts so I'm not going to.
2011-05-19fixup! Add tests to cover messages arriving a bit/a lot lateDavid Laban1-2/+4
2011-05-19fixup! Store events in the correct file according to their timestampDavid Laban1-1/+1
> > + date = g_date_time_new_from_unix_local (timestamp); > > Timestamp in TplEvent are always UTC.
2011-05-19fixup! log_store_xml_get_events_for_file: replace edited messages.David Laban1-17/+31
* update to private _tpl_text_event_add_supersedes Also addresses: > I think you don't have to call g_hash_table_insert() here ? And same in next > for loop. Actually, this is for the chained supersedes use-case, but yeah: it's wrong. Fixed it when I implemented event_queue_replace_and_supersede (), and fixed the comment on superseded_links > Use g_list_previous(). > Is that suppose to be funny ? (apparently it wasn't funny; fixed) > Your leaking a reference on the dumm_event. Maybe you want to rework you > _add_supersedes() method into something like link_supersedes() that would take > ownership ? Created method event_queue_replace_and_supersede with similar feel to event_queue_insert_sorted_after. This is something that I wanted to do, but couldn't see a clean way to do. Fixing the semantics of superseded_links made this easier. > You don't check anymore if parsing event worked. A corrupted XML file will > cause your code to crash. > *_parse_*() will currently only return NULL if g_object_new() does, but you're right: if someone changes this behaviour later, I should be resilient to it. Fixed.