/src/FreeRDP/libfreerdp/utils/drdynvc.c
Line  | Count  | Source (jump to first uncovered line)  | 
1  |  | /**  | 
2  |  |  * FreeRDP: A Remote Desktop Protocol Implementation  | 
3  |  |  *  | 
4  |  |  * drdynvc Utils - Helper functions converting something to string  | 
5  |  |  *  | 
6  |  |  * Copyright 2023 Armin Novak <armin.novak@thincast.com>  | 
7  |  |  * Copyright 2023 Thincast Technologies GmbH  | 
8  |  |  *  | 
9  |  |  * Licensed under the Apache License, Version 2.0 (the "License");  | 
10  |  |  * you may not use this file except in compliance with the License.  | 
11  |  |  * You may obtain a copy of the License at  | 
12  |  |  *  | 
13  |  |  *     http://www.apache.org/licenses/LICENSE-2.0  | 
14  |  |  *  | 
15  |  |  * Unless required by applicable law or agreed to in writing, software  | 
16  |  |  * distributed under the License is distributed on an "AS IS" BASIS,  | 
17  |  |  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  | 
18  |  |  * See the License for the specific language governing permissions and  | 
19  |  |  * limitations under the License.  | 
20  |  |  */  | 
21  |  |  | 
22  |  | #include <freerdp/utils/drdynvc.h>  | 
23  |  | #include <freerdp/channels/drdynvc.h>  | 
24  |  |  | 
25  |  | const char* drdynvc_get_packet_type(BYTE cmd)  | 
26  | 0  | { | 
27  | 0  |   switch (cmd)  | 
28  | 0  |   { | 
29  | 0  |     case CREATE_REQUEST_PDU:  | 
30  | 0  |       return "CREATE_REQUEST_PDU";  | 
31  | 0  |     case DATA_FIRST_PDU:  | 
32  | 0  |       return "DATA_FIRST_PDU";  | 
33  | 0  |     case DATA_PDU:  | 
34  | 0  |       return "DATA_PDU";  | 
35  | 0  |     case CLOSE_REQUEST_PDU:  | 
36  | 0  |       return "CLOSE_REQUEST_PDU";  | 
37  | 0  |     case CAPABILITY_REQUEST_PDU:  | 
38  | 0  |       return "CAPABILITY_REQUEST_PDU";  | 
39  | 0  |     case DATA_FIRST_COMPRESSED_PDU:  | 
40  | 0  |       return "DATA_FIRST_COMPRESSED_PDU";  | 
41  | 0  |     case DATA_COMPRESSED_PDU:  | 
42  | 0  |       return "DATA_COMPRESSED_PDU";  | 
43  | 0  |     case SOFT_SYNC_REQUEST_PDU:  | 
44  | 0  |       return "SOFT_SYNC_REQUEST_PDU";  | 
45  | 0  |     case SOFT_SYNC_RESPONSE_PDU:  | 
46  | 0  |       return "SOFT_SYNC_RESPONSE_PDU";  | 
47  | 0  |     default:  | 
48  | 0  |       return "UNKNOWN";  | 
49  | 0  |   }  | 
50  | 0  | }  |