Blame include/libssh/string.h

Packit Service 31306d
/*
Packit Service 31306d
 * This file is part of the SSH Library
Packit Service 31306d
 *
Packit Service 31306d
 * Copyright (c) 2009 by Aris Adamantiadis
Packit Service 31306d
 *
Packit Service 31306d
 * This library is free software; you can redistribute it and/or
Packit Service 31306d
 * modify it under the terms of the GNU Lesser General Public
Packit Service 31306d
 * License as published by the Free Software Foundation; either
Packit Service 31306d
 * version 2.1 of the License, or (at your option) any later version.
Packit Service 31306d
 *
Packit Service 31306d
 * This library is distributed in the hope that it will be useful,
Packit Service 31306d
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 31306d
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 31306d
 * Lesser General Public License for more details.
Packit Service 31306d
 *
Packit Service 31306d
 * You should have received a copy of the GNU Lesser General Public
Packit Service 31306d
 * License along with this library; if not, write to the Free Software
Packit Service 31306d
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Packit Service 31306d
 */
Packit Service 31306d
Packit Service 31306d
#ifndef STRING_H_
Packit Service 31306d
#define STRING_H_
Packit Service 31306d
#include "libssh/priv.h"
Packit Service 31306d
Packit Service 31306d
/* must be 32 bits number + immediately our data */
Packit Service 31306d
#ifdef _MSC_VER
Packit Service 31306d
#pragma pack(1)
Packit Service 31306d
#endif
Packit Service 31306d
struct ssh_string_struct {
Packit Service 31306d
	uint32_t size;
Packit Service 31306d
	unsigned char data[1];
Packit Service 31306d
}
Packit Service 31306d
#if defined(__GNUC__)
Packit Service 31306d
__attribute__ ((packed))
Packit Service 31306d
#endif
Packit Service 31306d
#ifdef _MSC_VER
Packit Service 31306d
#pragma pack()
Packit Service 31306d
#endif
Packit Service 31306d
;
Packit Service 31306d
Packit Service 31306d
#endif /* STRING_H_ */