summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-02-16 09:22:56 +0000
committerBenny Prijono <bennylp@teluu.com>2007-02-16 09:22:56 +0000
commit913bbe0e193e017da5475478cfe1f873d6bb9d1f (patch)
tree64fcce26346052423f4d3130819a2bb9ce82a916
parent0fefeb11a3480158b2aef0b7edbc73accd604071 (diff)
Ticket #102: use PJSUA_MAX_PLAYERS and PJSUA_MAX_RECORDERS instead of hardcoded value in pjsua
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@949 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h16
-rw-r--r--pjsip/include/pjsua-lib/pjsua_internal.h4
2 files changed, 18 insertions, 2 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index fd5df192..19188c4a 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -3374,6 +3374,22 @@ PJ_DECL(pj_status_t) pjsua_im_typing(pjsua_acc_id acc_id,
/**
+ * The maximum file player.
+ */
+#ifndef PJSUA_MAX_PLAYERS
+# define PJSUA_MAX_PLAYERS 32
+#endif
+
+
+/**
+ * The maximum file player.
+ */
+#ifndef PJSUA_MAX_RECORDERS
+# define PJSUA_MAX_RECORDERS 32
+#endif
+
+
+/**
* This structure describes media configuration, which will be specified
* when calling #pjsua_init(). Application MUST initialize this structure
* by calling #pjsua_media_config_default().
diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h
index 42344ec8..d886e3bf 100644
--- a/pjsip/include/pjsua-lib/pjsua_internal.h
+++ b/pjsip/include/pjsua-lib/pjsua_internal.h
@@ -216,11 +216,11 @@ struct pjsua_data
/* File players: */
unsigned player_cnt;/**< Number of file players. */
- pjsua_file_data player[32];/**< Array of players. */
+ pjsua_file_data player[PJSUA_MAX_PLAYERS];/**< Array of players.*/
/* File recorders: */
unsigned rec_cnt; /**< Number of file recorders. */
- pjsua_file_data recorder[32];/**< Array of file recorders. */
+ pjsua_file_data recorder[PJSUA_MAX_RECORDERS];/**< Array of recs.*/
};