* @param encoding A string representing the content encoding identifier
* @return The numerical ID of the content encoding
*/
+#if 0
int
mm_content_getencoding(struct mm_content *ct, const char *encoding)
{
/* Not found */
return MM_ENCODING_UNKNOWN;
}
+#endif
/**
* Constructs a MIME conform string of Content-Type parameters.
* part at the given position, moving any possible following MIME parts one
* down the hierarchy.
*/
+#if 0
int
mm_context_attachpart_after(MM_CTX *ctx, struct mm_mimepart *part, int pos)
{
return(0);
}
+#endif
/**
* Deletes a MIME part object from a MiniMIME context
* This function generates a default boundary string for the given context.
* If there is already a boundary for the context, the memory will be free()'d.
*/
+#if 0
int
mm_context_generateboundary(MM_CTX *ctx)
{
ctx->boundary = boundary;
return(0);
}
+#endif
/**
* Sets a preamble for the given MiniMIME context
* object. If preamble is a NULL-pointer then the preamble will be deleted,
* and the currently associated memory will be free automagically.
*/
+#if 0
int
mm_context_setpreamble(MM_CTX *ctx, char *preamble)
{
}
return(0);
}
+#endif
+#if 0
char *
mm_context_getpreamble(MM_CTX *ctx)
{
return(ctx->preamble);
}
+#endif
/**
* Creates an ASCII message of the specified context
*
* Great care is taken to not produce invalid MIME output.
*/
+#if 0
int
mm_context_flatten(MM_CTX *ctx, char **flat, size_t *length, int flags)
{
}
return -1;
}
+#endif
/** @} */
*
* One should take care to free() the result once it's not needed anymore.
*/
+#if 0
int
mm_envelope_getrecipients(MM_CTX *ctx, char **result, size_t *length)
{
return 0;
}
+#endif
/** @} */
* body, and thus, the memory pointed to by data can be freed after the
* operation.
*/
+#if 0
void
mm_mimepart_setbody(struct mm_mimepart *part, const char *data, int opaque)
{
}
part->length = strlen(data);
}
+#endif
/**
* Gets the length of a given MIME part object
* This function dynamically allocates memory and returns a pointer to it.
* This memory should be released with free() once not needed anymore.
*/
+#if 0
int
mm_mimeutil_gendate(char **result)
{
return(-1);
}
}
-
+#endif
int
mm_mimeutil_genboundary(char *prefix, size_t length, char **result)
* actual object, so the memory holding the arguments can safely be
* freed after successfull return of this function.
*/
+#if 0
struct mm_param *
mm_param_generate(const char *name, const char *value)
{
return param;
}
+#endif
/**
* Sets the name of the given MIME parameter
* @param copy If set to > 0, copy the value stored in name
* @returns The address of the previous name for passing to free()
*/
+#if 0
char *
mm_param_setname(struct mm_param *param, const char *name, int copy)
{
return retadr;
}
+#endif
/**
* Sets the value of the given MIME parameter
* @param copy If set to > 0, copy the value stored in value
* @returns The address of the previous value for passing to free()
*/
+#if 0
char *
mm_param_setvalue(struct mm_param *param, const char *value, int copy)
{
return retadr;
}
+#endif
/**
* Gets the name of a MIME parameter object
* @param param A valid MIME parameter object
* @returns The name of the MIME parameter
*/
+#if 0
const char *
mm_param_getname(struct mm_param *param)
{
assert(param != NULL);
return param->name;
}
+#endif
/**
* Gets the value of a MIME parameter object
* @param param A valid MIME parameter object
* @returns The value of the MIME parameter
*/
+#if 0
const char *
mm_param_getvalue(struct mm_param *param)
{
assert(param != NULL);
return param->value;
}
+#endif
/** @} */