Skip to content

Commit

Permalink
Added MMS_ADDRESS_TYPE_SUFFIX macro
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Feb 21, 2014
1 parent a322243 commit 0625e0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mms-lib/src/mms_util.c
Expand Up @@ -41,7 +41,7 @@ mms_strip_address_type(
char* address)
{
if (address) {
char* type = g_strrstr(g_strstrip(address), "/TYPE=");
char* type = g_strrstr(g_strstrip(address), MMS_ADDRESS_TYPE_SUFFIX);
if (type) *type = 0;
}
return address;
Expand Down
4 changes: 4 additions & 0 deletions mms-lib/src/mms_util.h
Expand Up @@ -57,6 +57,10 @@ mms_http_transfer_free(
G_INLINE_FUNC char* mms_strip(char* str)
{ return str ? g_strstrip(str) : NULL; }

/* Address type suffices */
#define MMS_ADDRESS_TYPE_SUFFIX "/TYPE="
#define MMS_ADDRESS_TYPE_SUFFIX_PHONE MMS_ADDRESS_TYPE_SUFFIX "PLMN"

#endif /* JOLLA_MMS_UTIL_H */

/*
Expand Down

0 comments on commit 0625e0e

Please sign in to comment.