mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: backport autoptr cleanups when necessary
This commit is contained in:
12
src/libsysprof/sysprof-backport-autocleanups.h
Normal file
12
src/libsysprof/sysprof-backport-autocleanups.h
Normal file
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef HAVE_POLKIT_AUTOPTR
|
||||
# include <polkit/polkit.h>
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthority, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthorizationResult, g_object_unref)
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSubject, g_object_unref)
|
||||
#endif
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
#include <polkit/polkit.h>
|
||||
|
||||
#include "sysprof-helpers.h"
|
||||
#include "sysprof-backport-autocleanups.h"
|
||||
|
||||
#include "helpers.h"
|
||||
#include "ipc-service.h"
|
||||
|
||||
Reference in New Issue
Block a user