milter-utils
3
milter managerライブラリ

# milter-utils

## 概要

    #define             MILTER_IMPLEMENT_ERROR_EMITTABLE    (init)
    #define             MILTER_DEFINE_ERROR_EMITTABLE_TYPE  (TypeName,
                                                             type_name,
                                                             TYPE_PARENT)
    #define             MILTER_IMPLEMENT_FINISHED_EMITTABLE_WITH_CODE(init,
                                                             code)
    #define             MILTER_IMPLEMENT_FINISHED_EMITTABLE (init)
    #define             MILTER_DEFINE_FINISHED_EMITTABLE_TYPE(TypeName,
                                                             type_name,
                                                             TYPE_PARENT)
    #define             MILTER_IMPLEMENT_REPLY_SIGNALS      (init)
    gchar *             milter_utils_inspect_io_condition_error
                                                            (GIOCondition condition);
    gchar *             milter_utils_inspect_enum           (GType enum_type,
                                                             gint enum_value);
    gchar *             milter_utils_get_enum_name          (GType enum_type,
                                                             gint enum_value);
    gchar *             milter_utils_get_enum_nick_name     (GType enum_type,
                                                             gint enum_value);
    gchar *             milter_utils_inspect_flags          (GType flags_type,
                                                             guint flags);
    gchar *             milter_utils_get_flags_names        (GType flags_type,
                                                             guint flags);
    gchar *             milter_utils_inspect_object         (GObject *object);
    gchar *             milter_utils_format_reply_code      (guint reply_code,
                                                             const gchar *extended_code,
                                                             const gchar *message);
    gchar *             milter_utils_inspect_hash_string_string
                                                            (GHashTable *hash);
    void                milter_utils_merge_hash_string_string
                                                            (GHashTable *dest,
                                                             GHashTable *src);
    gchar *             milter_utils_inspect_list_pointer   (const GList *list);
    MilterMacroStage    milter_utils_command_to_macro_stage (MilterCommand command);
    MilterCommand       milter_utils_macro_stage_to_command (MilterMacroStage stage);
    void                milter_utils_set_error_with_sub_error
                                                            (GError **error,
                                                             GQuark domain,
                                                             gint error_code,
                                                             GError *sub_error,
                                                             const gchar *format,
                                                             ...);
    guint               milter_utils_flags_from_string      (GType flags_type,
                                                             const gchar *flags_string,
                                                             guint base_flags,
                                                             GError **error);
    gint                milter_utils_enum_from_string       (GType enum_type,
                                                             const gchar *enum_string,
                                                             GError **error);
    void                milter_utils_append_indent          (GString *string,
                                                             guint size);
    void                milter_utils_xml_append_text_element
                                                            (GString *string,
                                                             const gchar *name,
                                                             const gchar *content,
                                                             guint indent);
    void                milter_utils_xml_append_boolean_element
                                                            (GString *string,
                                                             const gchar *name,
                                                             gboolean boolean,
                                                             guint indent);
    gint                milter_utils_strcmp0                (const gchar *str1,
                                                             const gchar *str2);

## 説明

## 詳細

### MILTER_IMPLEMENT_ERROR_EMITTABLE()

    #define             MILTER_IMPLEMENT_ERROR_EMITTABLE(init)

### MILTER_DEFINE_ERROR_EMITTABLE_TYPE()

    #define             MILTER_DEFINE_ERROR_EMITTABLE_TYPE(TypeName, type_name, TYPE_PARENT)

### MILTER_IMPLEMENT_FINISHED_EMITTABLE_WITH_CODE()

    #define             MILTER_IMPLEMENT_FINISHED_EMITTABLE_WITH_CODE(init, code)

### MILTER_IMPLEMENT_FINISHED_EMITTABLE()

    #define             MILTER_IMPLEMENT_FINISHED_EMITTABLE(init)

### MILTER_DEFINE_FINISHED_EMITTABLE_TYPE()

    #define             MILTER_DEFINE_FINISHED_EMITTABLE_TYPE(TypeName,                     \
                                                              type_name,                    \
                                                              TYPE_PARENT)

### MILTER_IMPLEMENT_REPLY_SIGNALS()

    #define             MILTER_IMPLEMENT_REPLY_SIGNALS(init)

### milter_utils_inspect_io_condition_error ()

    gchar *             milter_utils_inspect_io_condition_error
                                                            (GIOCondition condition);

### milter_utils_inspect_enum ()

    gchar *             milter_utils_inspect_enum           (GType enum_type,
                                                             gint enum_value);

### milter_utils_get_enum_name ()

    gchar *             milter_utils_get_enum_name          (GType enum_type,
                                                             gint enum_value);

### milter_utils_get_enum_nick_name ()

    gchar *             milter_utils_get_enum_nick_name     (GType enum_type,
                                                             gint enum_value);

### milter_utils_inspect_flags ()

    gchar *             milter_utils_inspect_flags          (GType flags_type,
                                                             guint flags);

### milter_utils_get_flags_names ()

    gchar *             milter_utils_get_flags_names        (GType flags_type,
                                                             guint flags);

### milter_utils_inspect_object ()

    gchar *             milter_utils_inspect_object         (GObject *object);

### milter_utils_format_reply_code ()

    gchar *             milter_utils_format_reply_code      (guint reply_code,
                                                             const gchar *extended_code,
                                                             const gchar *message);

### milter_utils_inspect_hash_string_string ()

    gchar *             milter_utils_inspect_hash_string_string
                                                            (GHashTable *hash);

### milter_utils_merge_hash_string_string ()

    void                milter_utils_merge_hash_string_string
                                                            (GHashTable *dest,
                                                             GHashTable *src);

### milter_utils_inspect_list_pointer ()

    gchar *             milter_utils_inspect_list_pointer   (const GList *list);

### milter_utils_command_to_macro_stage ()

    MilterMacroStage    milter_utils_command_to_macro_stage (MilterCommand command);

### milter_utils_macro_stage_to_command ()

    MilterCommand       milter_utils_macro_stage_to_command (MilterMacroStage stage);

### milter_utils_set_error_with_sub_error ()

    void                milter_utils_set_error_with_sub_error
                                                            (GError **error,
                                                             GQuark domain,
                                                             gint error_code,
                                                             GError *sub_error,
                                                             const gchar *format,
                                                             ...);

### milter_utils_flags_from_string ()

    guint               milter_utils_flags_from_string      (GType flags_type,
                                                             const gchar *flags_string,
                                                             guint base_flags,
                                                             GError **error);

### milter_utils_enum_from_string ()

    gint                milter_utils_enum_from_string       (GType enum_type,
                                                             const gchar *enum_string,
                                                             GError **error);

### milter_utils_append_indent ()

    void                milter_utils_append_indent          (GString *string,
                                                             guint size);

### milter_utils_xml_append_text_element ()

    void                milter_utils_xml_append_text_element
                                                            (GString *string,
                                                             const gchar *name,
                                                             const gchar *content,
                                                             guint indent);

### milter_utils_xml_append_boolean_element ()

    void                milter_utils_xml_append_boolean_element
                                                            (GString *string,
                                                             const gchar *name,
                                                             gboolean boolean,
                                                             guint indent);

### milter_utils_strcmp0 ()

    gint                milter_utils_strcmp0                (const gchar *str1,
                                                             const gchar *str2);