0
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-07-26 12:14:28 -04:00
Steffen Jaeckel c5a131ee46 Introduce our own shutdown callback mechanism.
Instead of adding stuff to `_shutdown()`, we can now register a shutdown
routine from the respective `init()` function of our modules.

This also has the advantage, that we're sure they're called in reverse
order from how the initialization happened.

I didn't simply use `atexit()` because POSIX says that the number of
possible callbacks is limited (min 32) and I was not sure whether
we will maybe extend this number at one point.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-03-07 21:09:16 +01:00

115 lines
1.3 KiB
C

#include <glib.h>
#include "pgp/gpg.h"
void
p_gpg_init(void)
{
}
GHashTable*
p_gpg_list_keys(void)
{
return NULL;
}
GHashTable*
p_gpg_pubkeys(void)
{
return NULL;
}
const char*
p_gpg_libver(void)
{
return NULL;
}
void
p_gpg_verify(const char* const barejid, const char* const sign)
{
}
char*
p_gpg_sign(const char* const str, const char* const fp)
{
return NULL;
}
gboolean
p_gpg_valid_key(const char* const keyid, char** err_str)
{
return FALSE;
}
gboolean
p_gpg_available(const char* const barejid)
{
return FALSE;
}
char*
p_gpg_decrypt(const char* const cipher)
{
return NULL;
}
void
p_gpg_on_connect(const char* const barejid)
{
}
void
p_gpg_on_disconnect(void)
{
}
gboolean
p_gpg_addkey(const char* const jid, const char* const keyid)
{
return TRUE;
}
void
p_gpg_free_decrypted(char* decrypted)
{
}
void
p_gpg_free_keys(GHashTable* keys)
{
}
void
p_gpg_autocomplete_key_reset(void)
{
}
char*
p_gpg_autocomplete_key(const char* const search_str, gboolean previous, void* context)
{
return NULL;
}
char*
p_gpg_format_fp_str(char* fp)
{
return NULL;
}
char*
p_gpg_get_pubkey(const char* const keyid)
{
return NULL;
}
gboolean
p_gpg_is_public_key_format(const char* buffer)
{
return TRUE;
}
ProfPGPKey*
p_gpg_import_pubkey(const char* buffer)
{
return NULL;
}