| 145 | } |
| 146 | |
| 147 | Handle_t CreateHudSyncObj(IdentityToken_t *pIdent) |
| 148 | { |
| 149 | Handle_t hndl; |
| 150 | HandleError err; |
| 151 | hud_syncobj_t *obj; |
| 152 | HandleSecurity sec; |
| 153 | |
| 154 | obj = new hud_syncobj_t; |
| 155 | |
| 156 | memset(obj->player_channels, 0, sizeof(obj->player_channels)); |
| 157 | |
| 158 | sec = HandleSecurity(pIdent, g_pCoreIdent); |
| 159 | |
| 160 | if ((hndl = handlesys->CreateHandleEx(m_hHudSyncObj, obj, &sec, NULL, &err)) |
| 161 | == BAD_HANDLE) |
| 162 | { |
| 163 | delete obj; |
| 164 | } |
| 165 | |
| 166 | return hndl; |
| 167 | } |
| 168 | |
| 169 | HandleError ReadHudSyncObj(Handle_t hndl, |
| 170 | IdentityToken_t *pOwner, |
no test coverage detected