MilterReplyEncoder 3 milter managerライブラリ
MilterReplyEncoder

## 概要

    struct              MilterReplyEncoder;
    MilterEncoder *     milter_reply_encoder_new            (void);
    void                milter_reply_encoder_encode_negotiate
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             MilterOption *option,
                                                             MilterMacrosRequests *macros_requests);
    void                milter_reply_encoder_encode_continue
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_reply_code
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *code);
    void                milter_reply_encoder_encode_temporary_failure
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_reject  (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_accept  (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_discard (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_add_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *name,
                                                             const gchar *value);
    void                milter_reply_encoder_encode_insert_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             guint32 index,
                                                             const gchar *name,
                                                             const gchar *value);
    void                milter_reply_encoder_encode_change_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *name,
                                                             guint32 index,
                                                             const gchar *value);
    void                milter_reply_encoder_encode_delete_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *name,
                                                             guint32 index);
    void                milter_reply_encoder_encode_change_from
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *from,
                                                             const gchar *parameters);
    void                milter_reply_encoder_encode_add_recipient
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *recipient,
                                                             const gchar *parameters);
    void                milter_reply_encoder_encode_delete_recipient
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *recipient);
    void                milter_reply_encoder_encode_replace_body
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *body,
                                                             gsize body_size,
                                                             gsize *packed_size);
    void                milter_reply_encoder_encode_progress
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_quarantine
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *reason);
    void                milter_reply_encoder_encode_connection_failure
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_shutdown
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);
    void                milter_reply_encoder_encode_skip    (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

## 説明

## 詳細

### struct MilterReplyEncoder

    struct MilterReplyEncoder {
        MilterEncoder object;
    };

MilterReplyEncoder

### milter_reply_encoder_new ()

    MilterEncoder *     milter_reply_encoder_new            (void);

milter_reply_encoder_new

### milter_reply_encoder_encode_negotiate ()

    void                milter_reply_encoder_encode_negotiate
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             MilterOption *option,
                                                             MilterMacrosRequests *macros_requests);

milter_reply_encoder_encode_negotiate

### milter_reply_encoder_encode_continue ()

    void                milter_reply_encoder_encode_continue
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_continue

### milter_reply_encoder_encode_reply_code ()

    void                milter_reply_encoder_encode_reply_code
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *code);

milter_reply_encoder_encode_reply_code

### milter_reply_encoder_encode_temporary_failure ()

    void                milter_reply_encoder_encode_temporary_failure
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_temporary_failure

### milter_reply_encoder_encode_reject ()

    void                milter_reply_encoder_encode_reject  (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_reject

### milter_reply_encoder_encode_accept ()

    void                milter_reply_encoder_encode_accept  (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_accept

### milter_reply_encoder_encode_discard ()

    void                milter_reply_encoder_encode_discard (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_discard

### milter_reply_encoder_encode_add_header ()

    void                milter_reply_encoder_encode_add_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *name,
                                                             const gchar *value);

milter_reply_encoder_encode_add_header

### milter_reply_encoder_encode_insert_header ()

    void                milter_reply_encoder_encode_insert_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             guint32 index,
                                                             const gchar *name,
                                                             const gchar *value);

milter_reply_encoder_encode_insert_header

### milter_reply_encoder_encode_change_header ()

    void                milter_reply_encoder_encode_change_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *name,
                                                             guint32 index,
                                                             const gchar *value);

milter_reply_encoder_encode_change_header

### milter_reply_encoder_encode_delete_header ()

    void                milter_reply_encoder_encode_delete_header
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *name,
                                                             guint32 index);

milter_reply_encoder_encode_delete_header

### milter_reply_encoder_encode_change_from ()

    void                milter_reply_encoder_encode_change_from
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *from,
                                                             const gchar *parameters);

milter_reply_encoder_encode_change_from

### milter_reply_encoder_encode_add_recipient ()

    void                milter_reply_encoder_encode_add_recipient
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *recipient,
                                                             const gchar *parameters);

milter_reply_encoder_encode_add_recipient

### milter_reply_encoder_encode_delete_recipient ()

    void                milter_reply_encoder_encode_delete_recipient
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *recipient);

milter_reply_encoder_encode_delete_recipient

### milter_reply_encoder_encode_replace_body ()

    void                milter_reply_encoder_encode_replace_body
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *body,
                                                             gsize body_size,
                                                             gsize *packed_size);

milter_reply_encoder_encode_replace_body

### milter_reply_encoder_encode_progress ()

    void                milter_reply_encoder_encode_progress
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_progress

### milter_reply_encoder_encode_quarantine ()

    void                milter_reply_encoder_encode_quarantine
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size,
                                                             const gchar *reason);

milter_reply_encoder_encode_quarantine

### milter_reply_encoder_encode_connection_failure ()

    void                milter_reply_encoder_encode_connection_failure
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_connection_failure

### milter_reply_encoder_encode_shutdown ()

    void                milter_reply_encoder_encode_shutdown
                                                            (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_shutdown

### milter_reply_encoder_encode_skip ()

    void                milter_reply_encoder_encode_skip    (MilterReplyEncoder *encoder,
                                                             const gchar **packet,
                                                             gsize *packet_size);

milter_reply_encoder_encode_skip