mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
capture: avoid GObject in libsysprof-capture-2.a
The point of this file was to be easily usable by applications that want to generate capture files (or proxy them). The intention here is that we only have SpCaptureReader/SpCaptureWriter (and associated bits necessary to support that). This makes sure that we do not use GObject from the libsysprof-capture-2.a while still having GType's in the libsysprof-2.so dynamic library. We also invert the GObject macro check so that the default is to not register a GType which increases the chances that copy/paste code does not run into double-registering a GType if used with an application that links against libsysprof-2. (One such example could be if Gtk uses this code for timers, as it would break Sysprof itself).
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
#ifndef SYSPROF_CAPTURE_H
|
||||
#define SYSPROF_CAPTURE_H
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <glib.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@ -30,8 +30,6 @@ G_BEGIN_DECLS
|
||||
# include "sp-error.h"
|
||||
# include "sysprof-version.h"
|
||||
|
||||
# include "capture/sp-capture-condition.h"
|
||||
# include "capture/sp-capture-cursor.h"
|
||||
# include "capture/sp-capture-reader.h"
|
||||
# include "capture/sp-capture-writer.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user