Mercurial > pidgin
comparison libpurple/server.c @ 23840:3da0957e7821
propagate from branch 'im.pidgin.pidgin' (head 868098fbe53290a8abcc3307c6fec2c6054a5e00)
to branch 'im.pidgin.soc.2008.vv' (head eb4a2834050e39f5387e97121b534adb7ffd1234)
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Thu, 26 Jun 2008 20:25:38 +0000 |
parents | 8ea901db8e34 10f5a529d2a6 |
children | eb8c8a926589 |
comparison
equal
deleted
inserted
replaced
23392:eac0561dfd55 | 23840:3da0957e7821 |
---|---|
35 #include "request.h" | 35 #include "request.h" |
36 #include "signals.h" | 36 #include "signals.h" |
37 #include "server.h" | 37 #include "server.h" |
38 #include "status.h" | 38 #include "status.h" |
39 #include "util.h" | 39 #include "util.h" |
40 #ifdef USE_VV | |
41 #include "media.h" | |
42 #endif | |
40 | 43 |
41 #define SECS_BEFORE_RESENDING_AUTORESPONSE 600 | 44 #define SECS_BEFORE_RESENDING_AUTORESPONSE 600 |
42 #define SEX_BEFORE_RESENDING_AUTORESPONSE "Only after you're married" | 45 #define SEX_BEFORE_RESENDING_AUTORESPONSE "Only after you're married" |
43 | 46 |
44 unsigned int | 47 unsigned int |
1051 if (!prpl_info->can_receive_file || prpl_info->can_receive_file(gc, who)) { | 1054 if (!prpl_info->can_receive_file || prpl_info->can_receive_file(gc, who)) { |
1052 prpl_info->send_file(gc, who, file); | 1055 prpl_info->send_file(gc, who, file); |
1053 } | 1056 } |
1054 } | 1057 } |
1055 } | 1058 } |
1059 | |
1060 #ifdef USE_VV | |
1061 PurpleMedia *serv_initiate_media(PurpleConnection *gc, const char *who, | |
1062 PurpleMediaStreamType type) | |
1063 { | |
1064 PurplePlugin *prpl = NULL; | |
1065 PurplePluginProtocolInfo *prpl_info = NULL; | |
1066 | |
1067 if (gc) | |
1068 prpl = purple_connection_get_prpl(gc); | |
1069 if (prpl) | |
1070 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); | |
1071 | |
1072 if (prpl_info && prpl_info->initiate_media) { | |
1073 /* should check that the protol supports this media type here.... */ | |
1074 return prpl_info->initiate_media(gc, who, type); | |
1075 } else { | |
1076 return NULL; | |
1077 } | |
1078 } | |
1079 | |
1080 gboolean | |
1081 serv_can_do_media(PurpleConnection *gc, const char *who, | |
1082 PurpleMediaStreamType type) | |
1083 { | |
1084 PurplePlugin *prpl = NULL; | |
1085 PurplePluginProtocolInfo *prpl_info = NULL; | |
1086 | |
1087 if (gc) | |
1088 prpl = purple_connection_get_prpl(gc); | |
1089 if (prpl) | |
1090 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); | |
1091 | |
1092 if (prpl_info && prpl_info->can_do_media) { | |
1093 /* should check that the protol supports this media type here.... */ | |
1094 return prpl_info->can_do_media(gc, who, type); | |
1095 } else { | |
1096 return FALSE; | |
1097 } | |
1098 } | |
1099 #else | |
1100 void * | |
1101 serv_initiate_media(void *gc, void *who, void *type) | |
1102 { | |
1103 purple_debug_info("serv", "Blank serv_initiate_media called\n"); | |
1104 return NULL; | |
1105 } | |
1106 | |
1107 void * | |
1108 serv_can_do_media(void *gc, void *who, void *type) | |
1109 { | |
1110 purple_debug_info("serv", "Blank serv_can_do_media called\n"); | |
1111 return NULL; | |
1112 } | |
1113 #endif /* USE_VV */ |