extern struct engine_ops _gpgme_engine_ops_uiserver;
#endif
+
+/* Prototypes for extra functions in engine-gpgconf.c */
+gpgme_error_t _gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
+ gpgme_conf_type_t type, const void *value);
+void _gpgme_conf_arg_release (gpgme_conf_arg_t arg, gpgme_conf_type_t type);
+gpgme_error_t _gpgme_conf_opt_change (gpgme_conf_opt_t opt, int reset,
+ gpgme_conf_arg_t arg);
+void _gpgme_conf_release (gpgme_conf_comp_t conf);
+gpgme_error_t _gpgme_conf_load (void *engine, gpgme_conf_comp_t *conf_p);
+
+
+
#endif /* ENGINE_BACKEND_H */
#include "engine.h"
#include "debug.h"
-#ifdef ENABLE_GPGCONF
-/* engine-gpgconf.c. */
-gpgme_error_t _gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
- gpgme_conf_type_t type, const void *value);
-void _gpgme_conf_arg_release (gpgme_conf_arg_t arg, gpgme_conf_type_t type);
-gpgme_error_t _gpgme_conf_opt_change (gpgme_conf_opt_t opt, int reset,
- gpgme_conf_arg_t arg);
-void _gpgme_conf_release (gpgme_conf_comp_t conf);
-gpgme_error_t _gpgme_conf_load (void *engine, gpgme_conf_comp_t *conf_p);
-gpgme_error_t gpgme_op_conf_save (gpgme_ctx_t ctx, gpgme_conf_comp_t comp);
-
-#endif
+#include "engine-backend.h"
\f
/* Allocate a new gpgme_conf_arg_t. */
gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
gpgme_conf_type_t type, const void *value)
{
-#ifdef ENABLE_GPGCONF
return _gpgme_conf_arg_new (arg_p, type, value);
-#else
- return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
-#endif
}
void
gpgme_conf_arg_release (gpgme_conf_arg_t arg, gpgme_conf_type_t type)
{
-#ifdef ENABLE_GPGCONF
_gpgme_conf_arg_release (arg, type);
-#endif
}
gpgme_error_t
gpgme_conf_opt_change (gpgme_conf_opt_t opt, int reset, gpgme_conf_arg_t arg)
{
-#ifdef ENABLE_GPGCONF
return _gpgme_conf_opt_change (opt, reset, arg);
-#else
- return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
-#endif
}
void
gpgme_conf_release (gpgme_conf_comp_t conf)
{
-#ifdef ENABLE_GPGCONF
_gpgme_conf_release (conf);
-#endif
}
gpgme_error_t
gpgme_op_conf_load (gpgme_ctx_t ctx, gpgme_conf_comp_t *conf_p)
{
-#ifdef ENABLE_GPGCONF
gpgme_error_t err;
gpgme_protocol_t proto;
err = _gpgme_engine_op_conf_load (ctx->engine, conf_p);
ctx->protocol = proto;
return err;
-#else
- return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
-#endif
}
gpgme_error_t
gpgme_op_conf_save (gpgme_ctx_t ctx, gpgme_conf_comp_t comp)
{
-#ifdef ENABLE_GPGCONF
gpgme_error_t err;
gpgme_protocol_t proto;
err = _gpgme_engine_op_conf_save (ctx->engine, comp);
ctx->protocol = proto;
return err;
-#else
- return gpg_error (GPG_ERR_NOT_IMPLEMENTED);
-#endif
}