Commit 1e83d075 authored by Debarshi Ray's avatar Debarshi Ray

debug: Add a debug flag to track the application's lifetime

parent e39344cc
......@@ -37,6 +37,7 @@ photos_debug_init (void)
{
const GDebugKey keys[] =
{
{ "application", PHOTOS_DEBUG_APPLICATION },
{ "dlna", PHOTOS_DEBUG_DLNA },
{ "gegl", PHOTOS_DEBUG_GEGL },
{ "memory", PHOTOS_DEBUG_MEMORY },
......
......@@ -28,12 +28,13 @@ G_BEGIN_DECLS
typedef enum
{
PHOTOS_DEBUG_DLNA = 1 << 0,
PHOTOS_DEBUG_GEGL = 1 << 1,
PHOTOS_DEBUG_MEMORY = 1 << 2,
PHOTOS_DEBUG_NETWORK = 1 << 3,
PHOTOS_DEBUG_THUMBNAILER = 1 << 4,
PHOTOS_DEBUG_TRACKER = 1 << 5
PHOTOS_DEBUG_APPLICATION = 1 << 0,
PHOTOS_DEBUG_DLNA = 1 << 1,
PHOTOS_DEBUG_GEGL = 1 << 2,
PHOTOS_DEBUG_MEMORY = 1 << 3,
PHOTOS_DEBUG_NETWORK = 1 << 4,
PHOTOS_DEBUG_THUMBNAILER = 1 << 5,
PHOTOS_DEBUG_TRACKER = 1 << 6
} PhotosDebugFlags;
void photos_debug_init (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment