Commit 7a55b13c 7a55b13c99b2fcb5558f797b14167ea02680a3ee by Sergey Poznyakoff

(mu_sieve_machine_inherit_report): Replace by mu_sieve_machine_inherit

1 parent 3a24a07c
......@@ -205,8 +205,8 @@ int mu_sieve_vlist_compare (mu_sieve_value_t * a, mu_sieve_value_t * b,
int mu_sieve_machine_init (mu_sieve_machine_t * mach, void *data);
int mu_sieve_machine_dup (mu_sieve_machine_t const in,
mu_sieve_machine_t *out);
void mu_sieve_machine_inherit_report (mu_sieve_machine_t child,
mu_sieve_machine_t parent);
int mu_sieve_machine_inherit (mu_sieve_machine_t const in,
mu_sieve_machine_t *out);
void mu_sieve_machine_destroy (mu_sieve_machine_t * pmach);
int mu_sieve_machine_add_destructor (mu_sieve_machine_t mach,
mu_sieve_destructor_t destr, void *ptr);
......
......@@ -368,14 +368,22 @@ mu_sieve_machine_init (mu_sieve_machine_t *pmach, void *data)
return 0;
}
void
mu_sieve_machine_inherit_report (mu_sieve_machine_t child,
mu_sieve_machine_t parent)
int
mu_sieve_machine_inherit (mu_sieve_machine_t const parent,
mu_sieve_machine_t *pmach)
{
mu_sieve_machine_t child;
int rc;
rc = mu_sieve_machine_init (&child, parent->data);
if (rc)
return rc;
child->logger = parent->logger;
child->debug = parent->debug;
child->debug_level = parent->debug_level;
child->debug_printer = parent->debug_printer;
*pmach = child;
return 0;
}
int
......