summaryrefslogtreecommitdiff
path: root/telepathy-logger/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Include config.h as the first thing in every .c fileDebarshi Ray2013-01-091-0/+2
| | | | | | | | | | | This is Autoconf best-practice, and ensures that the GLib and Telepathy version-selection macros defined by configure.ac work as intended. Including config.h turns on ENABLE_DEBUG, which in turn leads to the usage of _tpl_debug_set_flags_from_env. In those cases we should include telepathy-logger/debug-internal.h also. Fixes: https://bugs.freedesktop.org/59165
* Move event_queue_insert_sorted_after() to utilNicolas Dufresne2011-05-261-2/+35
|
* Leak a single GTimeZoneEmilio Pozuelo Monfort2011-04-131-1/+7
| | | | | ...to avoid crashes when freeing them. See https://bugzilla.gnome.org/show_bug.cgi?id=646435
* Removed broken editor instructionNicolas Dufresne2011-03-251-1/+0
|
* Remove log_id generatorNicolas Dufresne2011-03-151-31/+0
|
* Move _time_parse() to util and remove datetimeNicolas Dufresne2011-03-031-1/+34
|
* Port _tpl_create_message_token() to GDateTimeNicolas Dufresne2011-03-031-4/+9
|
* Remove unused error in rmdir_resursivelyNicolas Dufresne2011-02-111-7/+3
|
* Implement clear method for XML log storeNicolas Dufresne2011-02-101-0/+42
|
* rename all non public headers to -internal.hGuillaume Desmottes2010-05-271-1/+1
|
* Internalize datetime codeSimon McVittie2010-04-231-2/+2
|
* Internalize util.hSimon McVittie2010-04-231-1/+1
|
* Namespace create_message_token properlySimon McVittie2010-04-231-1/+1
| | | | Extern functions should be namespaced.
* Reintroducing static strings instead for SQLCosimo Alfarano2010-03-121-2/+2
|
* Changed create_message_token timestamp type from str to gint64Cosimo Alfarano2010-03-121-1/+7
| | | | | | This way it is passed a unique repr of the data. With the str if any other format string was used, a different token would be produced
* TplLogEntry/TplLogEntryText: added several fields/propsCosimo Alfarano2010-03-121-0/+44
| | | | | | | | | | | | | | | | | | pending_msg_id: the entry's pending msd_id or -1 if sent/ack'd channel_path: the channel path relative to the channel originating the entry log_id: changed type, from guint to (gchar *), to represent a literal token, thus the constructor for TplLogEntry changed to follow the log_id type change. Due to the type change, a small amend has been done on TplLogStoreEmapthy. TplLogStoreDefault has been created since with the introduction of log_id as a literal token, TplLogStoreEmpathy won't be compatible anymore with the current TPL default LS. A utility function has been added to util.c, returning a message_token which TPL clients can trust to be unique within TPL, this until Bug#26838 will be solved. TplLogManager has been updated with the new TPL_LOG_STORE_DEFAULT instance. TpLChannelText has been updated with the TplLogStoreText constructor update.
* Removal of util.c module.Cosimo Alfarano2010-02-151-32/+0
| | | | | | | | Use the normal approach to unreferencing objects. Use g_str_equal instead of tpl_strequal (which was useless and now removed). Removed any inclusion of util.h from headers files, and properly including util.h in .c files
* include config.hCosimo Alfarano2010-02-151-0/+1
| | | | Also alphabetic ordering for TPL_DEBUG_XXX constant and GDebugKey array
* Action chain module createdCosimo Alfarano2010-02-121-100/+0
| | | | | | * moved action-chain related funcs to action-chain module * remove action-chain related funcs from utils * included action-chain.h where needed and added to Makefile.am
* Fixed check-coding-styleCosimo Alfarano2010-02-101-5/+5
| | | | * now it only fails the dbus-binding-tool generated code
* TplChannelText actionchain order fixedCosimo Alfarano2010-02-081-15/+35
| | | | | | | | * it's a recommit or 5084ee671ed91648423651260c5d929597861cb3, which for some reason wasn't right. * added _prepend method to ActionChain * fixed a action insertion order in TplChannelText, so that TpContacts are retrieved BEFORE the message pending retrieval * improved TplChannelText debugging
* fix lost pending messagesCosimo Alfarano2010-02-051-1/+0
| | | | | | | * add support for Pending Messages retrieval on Text channels * misc TP re-styling * add properties to TplContact * add documentation for some methods
* Refactored TplChannelText using ActionChainCosimo Alfarano2010-01-281-0/+64
| | | | | | | * refactored TplChannelText as implementation of the abstract TplChannel * added tpl_channel_text_call_when_ready method in order to prepare tpl_channel, its internal objects, connect signals, etc * added TplActionChain struct and related functions to util.[ch]
* Started the TplLogEntry refactoringCosimo Alfarano2010-01-221-0/+48