Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mmsd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chris T
mmsd
Commits
50eaf2cd
Commit
50eaf2cd
authored
Jan 21, 2021
by
Chris T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing Files not needed
parent
251eff66
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
2889 deletions
+0
-2889
mmsutil.h
mmsutil.h
+0
-182
service.c
service.c
+0
-2649
service.h
service.h
+0
-58
No files found.
mmsutil.h
deleted
100644 → 0
View file @
251eff66
/*
*
* Multimedia Messaging Service
*
* Copyright (C) 2010-2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
enum
mms_message_type
{
MMS_MESSAGE_TYPE_SEND_REQ
=
128
,
MMS_MESSAGE_TYPE_SEND_CONF
=
129
,
MMS_MESSAGE_TYPE_NOTIFICATION_IND
=
130
,
MMS_MESSAGE_TYPE_NOTIFYRESP_IND
=
131
,
MMS_MESSAGE_TYPE_RETRIEVE_CONF
=
132
,
MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND
=
133
,
MMS_MESSAGE_TYPE_DELIVERY_IND
=
134
,
};
enum
mms_message_status
{
MMS_MESSAGE_STATUS_DOWNLOADED
,
MMS_MESSAGE_STATUS_RECEIVED
,
MMS_MESSAGE_STATUS_READ
,
MMS_MESSAGE_STATUS_SENT
,
MMS_MESSAGE_STATUS_DRAFT
,
};
enum
mms_message_rsp_status
{
MMS_MESSAGE_RSP_STATUS_OK
=
128
,
MMS_MESSAGE_RSP_STATUS_ERR_UNSUPPORTED_MESSAGE
=
136
,
MMS_MESSAGE_RSP_STATUS_ERR_TRANS_FAILURE
=
192
,
MMS_MESSAGE_RSP_STATUS_ERR_TRANS_NETWORK_PROBLEM
=
195
,
MMS_MESSAGE_RSP_STATUS_ERR_PERM_FAILURE
=
224
,
MMS_MESSAGE_RSP_STATUS_ERR_PERM_SERVICE_DENIED
=
225
,
MMS_MESSAGE_RSP_STATUS_ERR_PERM_MESSAGE_FORMAT_CORRUPT
=
226
,
MMS_MESSAGE_RSP_STATUS_ERR_PERM_SENDING_ADDRESS_UNRESOLVED
=
227
,
MMS_MESSAGE_RSP_STATUS_ERR_PERM_CONTENT_NOT_ACCEPTED
=
229
,
MMS_MESSAGE_RSP_STATUS_ERR_PERM_LACK_OF_PREPAID
=
235
,
};
enum
mms_message_retr_status
{
MMS_MESSAGE_RETR_STATUS_OK
=
128
,
MMS_MESSAGE_RETR_STATUS_ERR_TRANS_MIN
=
192
,
MMS_MESSAGE_RETR_STATUS_ERR_TRANS_FAILURE
=
192
,
MMS_MESSAGE_RETR_STATUS_ERR_TRANS_MESSAGE_NOT_FOUND
=
194
,
MMS_MESSAGE_RETR_STATUS_ERR_PERM_MIN
=
224
,
MMS_MESSAGE_RETR_STATUS_ERR_PERM_FAILURE
=
224
,
MMS_MESSAGE_RETR_STATUS_ERR_PERM_SERVICE_DENIED
=
225
,
MMS_MESSAGE_RETR_STATUS_ERR_PERM_MESSAGE_NOT_FOUND
=
226
,
MMS_MESSAGE_RETR_STATUS_ERR_PERM_CONTENT_UNSUPPORTED
=
227
,
};
enum
mms_message_read_status
{
MMS_MESSAGE_READ_STATUS_READ
=
128
,
MMS_MESSAGE_READ_STATUS_DELETED_UNREAD
=
129
,
};
enum
mms_message_notify_status
{
MMS_MESSAGE_NOTIFY_STATUS_RETRIEVED
=
129
,
MMS_MESSAGE_NOTIFY_STATUS_REJECTED
=
130
,
MMS_MESSAGE_NOTIFY_STATUS_DEFERRED
=
131
,
MMS_MESSAGE_NOTIFY_STATUS_UNRECOGNISED
=
132
,
};
enum
mms_message_delivery_status
{
MMS_MESSAGE_DELIVERY_STATUS_EXPIRED
=
128
,
MMS_MESSAGE_DELIVERY_STATUS_RETRIEVED
=
129
,
MMS_MESSAGE_DELIVERY_STATUS_REJECTED
=
130
,
MMS_MESSAGE_DELIVERY_STATUS_DEFERRED
=
131
,
MMS_MESSAGE_DELIVERY_STATUS_UNRECOGNISED
=
132
,
MMS_MESSAGE_DELIVERY_STATUS_INDETERMINATE
=
133
,
MMS_MESSAGE_DELIVERY_STATUS_FORWARDED
=
134
,
MMS_MESSAGE_DELIVERY_STATUS_UNREACHABLE
=
135
,
};
enum
mms_message_sender_visibility
{
MMS_MESSAGE_SENDER_VISIBILITY_HIDE
=
128
,
MMS_MESSAGE_SENDER_VISIBILITY_SHOW
=
129
,
};
enum
mms_message_value_bool
{
MMS_MESSAGE_VALUE_BOOL_YES
=
128
,
MMS_MESSAGE_VALUE_BOOL_NO
=
129
,
};
enum
mms_message_version
{
MMS_MESSAGE_VERSION_1_0
=
0x90
,
MMS_MESSAGE_VERSION_1_1
=
0x91
,
MMS_MESSAGE_VERSION_1_2
=
0x92
,
MMS_MESSAGE_VERSION_1_3
=
0x93
,
};
struct
mms_notification_ind
{
char
*
from
;
char
*
subject
;
char
*
cls
;
unsigned
int
size
;
time_t
expiry
;
char
*
location
;
};
struct
mms_retrieve_conf
{
enum
mms_message_status
status
;
char
*
from
;
char
*
to
;
char
*
subject
;
char
*
cls
;
char
*
priority
;
char
*
msgid
;
time_t
date
;
char
*
datestamp
;
};
struct
mms_send_req
{
enum
mms_message_status
status
;
char
*
to
;
time_t
date
;
char
*
datestamp
;
char
*
content_type
;
gboolean
dr
;
};
struct
mms_send_conf
{
enum
mms_message_rsp_status
rsp_status
;
char
*
msgid
;
};
struct
mms_notification_resp_ind
{
enum
mms_message_notify_status
notify_status
;
};
struct
mms_delivery_ind
{
enum
mms_message_delivery_status
dr_status
;
char
*
msgid
;
char
*
to
;
time_t
date
;
};
struct
mms_attachment
{
unsigned
char
*
data
;
size_t
offset
;
size_t
length
;
char
*
content_type
;
char
*
content_id
;
};
struct
mms_message
{
enum
mms_message_type
type
;
char
*
uuid
;
char
*
path
;
char
*
transaction_id
;
unsigned
char
version
;
GSList
*
attachments
;
union
{
struct
mms_notification_ind
ni
;
struct
mms_retrieve_conf
rc
;
struct
mms_send_req
sr
;
struct
mms_send_conf
sc
;
struct
mms_notification_resp_ind
nri
;
struct
mms_delivery_ind
di
;
};
};
char
*
mms_content_type_get_param_value
(
const
char
*
content_type
,
const
char
*
param_name
);
gboolean
mms_message_decode
(
const
unsigned
char
*
pdu
,
unsigned
int
len
,
struct
mms_message
*
out
);
gboolean
mms_message_encode
(
struct
mms_message
*
msg
,
int
fd
);
void
mms_message_free
(
struct
mms_message
*
msg
);
const
char
*
mms_message_status_get_string
(
enum
mms_message_status
status
);
service.c
deleted
100644 → 0
View file @
251eff66
This diff is collapsed.
Click to expand it.
service.h
deleted
100644 → 0
View file @
251eff66
/*
*
* Multimedia Messaging Service
*
* Copyright (C) 2010-2011 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include "types.h"
struct
mms_service
;
struct
mms_message
;
typedef
void
(
*
mms_service_bearer_handler_func_t
)
(
mms_bool_t
active
,
void
*
user_data
);
struct
mms_service
*
mms_service_create
(
void
);
struct
mms_service
*
mms_service_ref
(
struct
mms_service
*
service
);
void
mms_service_unref
(
struct
mms_service
*
service
);
int
mms_service_register
(
struct
mms_service
*
service
);
int
mms_service_unregister
(
struct
mms_service
*
service
);
int
mms_service_set_identity
(
struct
mms_service
*
service
,
const
char
*
identity
);
int
mms_service_set_mmsc
(
struct
mms_service
*
service
,
const
char
*
mmsc
);
int
mms_service_set_bearer_handler
(
struct
mms_service
*
service
,
mms_service_bearer_handler_func_t
handler
,
void
*
user_data
);
void
mms_service_push_notify
(
struct
mms_service
*
service
,
unsigned
char
*
data
,
int
len
);
void
mms_service_bearer_notify
(
struct
mms_service
*
service
,
mms_bool_t
active
,
const
char
*
interface
,
const
char
*
proxy
);
int
mms_message_register
(
struct
mms_service
*
service
,
struct
mms_message
*
msg
);
int
mms_message_unregister
(
const
struct
mms_service
*
service
,
const
char
*
msg_path
);
const
char
*
time_to_str
(
const
time_t
*
t
);
void
debug_print
(
const
char
*
s
,
void
*
data
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment