Bug 55338 - Miscellaneous clean-up of the TplLogStore API
Summary: Miscellaneous clean-up of the TplLogStore API
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: logger (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/wj...
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-09-25 23:01 UTC by Will Thompson
Modified: 2012-09-27 19:15 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2012-09-25 23:01:18 UTC
With a view to turning my proof-of-concept Google Talk IMAP log scraper into a backend in the logger, I found myself cleaning up some bits of the LogStore API which I didn't like very much.

The linked branch passes its tests. I haven't actually run it for real, though.
Comment 1 Jonny Lamb 2012-09-27 11:28:35 UTC
"Correct some typos in docstrings":

  * If an TplLogStore implementation is writable, the #TplLogManager will call
- * it's tpl_log_store_add_event() method every time a loggable even occurs,
- * i.e., everytime _tpl_log_manager_add_event() is called.
+ * its tpl_log_store_add_event() method every time a loggable even occurs,
+ * i.e., every time _tpl_log_manager_add_event() is called.

Interesting you fixed these typos but missed "an TplLogStore" and "a loggable even"!

- g_value_set_string (value, priv->name);
+ g_value_set_string (value, TPL_LOG_STORE_PIDGIN_NAME);

You could use _set_static_string here if you wanted? Oh you remove the property later. Never mind then.

Your changes look fine to me.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.