[asterisk-commits] kpfleming: trunk r73553 - /trunk/main/minimime/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 5 17:48:18 CDT 2007
Author: kpfleming
Date: Thu Jul 5 17:48:17 2007
New Revision: 73553
URL: http://svn.digium.com/view/asterisk?view=rev&rev=73553
Log:
comment out some code that is not used and does not have prototypes
Modified:
trunk/main/minimime/mm_contenttype.c
trunk/main/minimime/mm_context.c
trunk/main/minimime/mm_envelope.c
trunk/main/minimime/mm_mimepart.c
trunk/main/minimime/mm_mimeutil.c
trunk/main/minimime/mm_param.c
Modified: trunk/main/minimime/mm_contenttype.c
URL: http://svn.digium.com/view/asterisk/trunk/main/minimime/mm_contenttype.c?view=diff&rev=73553&r1=73552&r2=73553
==============================================================================
--- trunk/main/minimime/mm_contenttype.c (original)
+++ trunk/main/minimime/mm_contenttype.c Thu Jul 5 17:48:17 2007
@@ -529,6 +529,7 @@
* @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)
{
@@ -545,6 +546,7 @@
/* Not found */
return MM_ENCODING_UNKNOWN;
}
+#endif
/**
* Constructs a MIME conform string of Content-Type parameters.
Modified: trunk/main/minimime/mm_context.c
URL: http://svn.digium.com/view/asterisk/trunk/main/minimime/mm_context.c?view=diff&rev=73553&r1=73552&r2=73553
==============================================================================
--- trunk/main/minimime/mm_context.c (original)
+++ trunk/main/minimime/mm_context.c Thu Jul 5 17:48:17 2007
@@ -179,6 +179,7 @@
* 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)
{
@@ -202,6 +203,7 @@
return(0);
}
+#endif
/**
* Deletes a MIME part object from a MiniMIME context
@@ -342,6 +344,7 @@
* 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)
{
@@ -384,6 +387,7 @@
ctx->boundary = boundary;
return(0);
}
+#endif
/**
* Sets a preamble for the given MiniMIME context
@@ -397,6 +401,7 @@
* 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)
{
@@ -413,7 +418,9 @@
}
return(0);
}
-
+#endif
+
+#if 0
char *
mm_context_getpreamble(MM_CTX *ctx)
{
@@ -422,6 +429,7 @@
return(ctx->preamble);
}
+#endif
/**
* Creates an ASCII message of the specified context
@@ -439,6 +447,7 @@
*
* 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)
{
@@ -600,5 +609,6 @@
}
return -1;
}
+#endif
/** @} */
Modified: trunk/main/minimime/mm_envelope.c
URL: http://svn.digium.com/view/asterisk/trunk/main/minimime/mm_envelope.c?view=diff&rev=73553&r1=73552&r2=73553
==============================================================================
--- trunk/main/minimime/mm_envelope.c (original)
+++ trunk/main/minimime/mm_envelope.c Thu Jul 5 17:48:17 2007
@@ -235,6 +235,7 @@
*
* 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)
{
@@ -265,5 +266,6 @@
return 0;
}
+#endif
/** @} */
Modified: trunk/main/minimime/mm_mimepart.c
URL: http://svn.digium.com/view/asterisk/trunk/main/minimime/mm_mimepart.c?view=diff&rev=73553&r1=73552&r2=73553
==============================================================================
--- trunk/main/minimime/mm_mimepart.c (original)
+++ trunk/main/minimime/mm_mimepart.c Thu Jul 5 17:48:17 2007
@@ -409,6 +409,7 @@
* 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)
{
@@ -423,6 +424,7 @@
}
part->length = strlen(data);
}
+#endif
/**
* Gets the length of a given MIME part object
Modified: trunk/main/minimime/mm_mimeutil.c
URL: http://svn.digium.com/view/asterisk/trunk/main/minimime/mm_mimeutil.c?view=diff&rev=73553&r1=73552&r2=73553
==============================================================================
--- trunk/main/minimime/mm_mimeutil.c (original)
+++ trunk/main/minimime/mm_mimeutil.c Thu Jul 5 17:48:17 2007
@@ -68,6 +68,7 @@
* 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)
{
@@ -86,7 +87,7 @@
return(-1);
}
}
-
+#endif
int
mm_mimeutil_genboundary(char *prefix, size_t length, char **result)
Modified: trunk/main/minimime/mm_param.c
URL: http://svn.digium.com/view/asterisk/trunk/main/minimime/mm_param.c?view=diff&rev=73553&r1=73552&r2=73553
==============================================================================
--- trunk/main/minimime/mm_param.c (original)
+++ trunk/main/minimime/mm_param.c Thu Jul 5 17:48:17 2007
@@ -125,6 +125,7 @@
* 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)
{
@@ -137,6 +138,7 @@
return param;
}
+#endif
/**
* Sets the name of the given MIME parameter
@@ -146,6 +148,7 @@
* @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)
{
@@ -161,6 +164,7 @@
return retadr;
}
+#endif
/**
* Sets the value of the given MIME parameter
@@ -170,6 +174,7 @@
* @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)
{
@@ -185,6 +190,7 @@
return retadr;
}
+#endif
/**
* Gets the name of a MIME parameter object
@@ -192,12 +198,14 @@
* @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
@@ -205,11 +213,13 @@
* @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
/** @} */
More information about the asterisk-commits
mailing list