Path: blob/21.2-virgl/src/gallium/auxiliary/rbug/rbug_connection.h
4561 views
/*1* Copyright 2009 VMware, Inc.2* All Rights Reserved.3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the "Software"),6* to deal in the Software without restriction, including without limitation7* on the rights to use, copy, modify, merge, publish, distribute, sub8* license, and/or sell copies of the Software, and to permit persons to whom9* the Software is furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice (including the next12* paragraph) shall be included in all copies or substantial portions of the13* Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL18* VMWARE AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,19* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR20* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE21* USE OR OTHER DEALINGS IN THE SOFTWARE.22*/2324/*25* This file contains the function defentions for connection see c file for26* more comments covering function use.27*/2829#ifndef _RBUG_CONNECTION_H_30#define _RBUG_CONNECTION_H_3132#include "rbug_proto.h"3334struct rbug_connection * rbug_from_socket(int socket);3536void rbug_disconnect(struct rbug_connection *c);3738struct rbug_header * rbug_get_message(struct rbug_connection *c, uint32_t *serial);3940void rbug_free_header(struct rbug_header *header);4142struct rbug_header * rbug_demarshal(struct rbug_proto_header *header);4344#endif454647