tpkplugin: Add missing CLEAN function handler
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 20 May 2025 12:26:06 +0000 (14:26 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 21 May 2025 09:18:28 +0000 (11:18 +0200)
Change-Id: I2ce223bbecb0b94af2ebd1e88227bf1ec7a7c869

src/tpkplugin/plugin.c

index ba7e9ccd521f2c759b0c0178cca0eca15ec64cd2..ca2b647543657dbd9576ee32d408d87a08b991be 100644 (file)
@@ -14,7 +14,7 @@
 #endif
 #define LOG_TAG "SESSIOND_GEN_SKEL_IMG"
 
-int gen_skel(void) {
+static int gen_skel(void) {
        // The logic for skel generation is not in plugin to make it possible to call it also manually during image build
        return system("/usr/sbin/sessiond --regenerate-skel");
 }
@@ -75,3 +75,9 @@ int PKGMGR_PARSER_PLUGIN_POST_UPGRADE(const char* packageId)
        SLOGD("Generate sessiond skel image for fast session add - triggered by %s package upgrade", packageId);
        return gen_skel();
 }
+
+EXPORT_API
+int PKGMGR_PARSER_PLUGIN_CLEAN(xmlDocPtr doc, const char* pkgId)
+{
+       return 0;
+}