Unify headers guard names

Always use H_SPICE_COMMON_ prefix with uppercase filename (without
extension).

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com
This commit is contained in:
Frediano Ziglio 2018-11-23 10:41:50 +00:00
parent 6077523a5f
commit 125cfa7fb2
25 changed files with 61 additions and 61 deletions

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef BACKTRACE_H
#define BACKTRACE_H
#ifndef H_SPICE_COMMON_BACKTRACE
#define H_SPICE_COMMON_BACKTRACE
#include <spice/macros.h>
@ -31,4 +31,4 @@ void spice_backtrace(void);
SPICE_END_DECLS
#endif // BACKTRACE_H
#endif // H_SPICE_COMMON_BACKTRACE

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_CANVAS_BASE
#define _H_CANVAS_BASE
#ifndef H_SPICE_COMMON_CANVAS_BASE
#define H_SPICE_COMMON_CANVAS_BASE
#include <spice/macros.h>

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_CANVAS_UTILS
#define _H_CANVAS_UTILS
#ifndef H_SPICE_COMMON_CANVAS_UTILS
#define H_SPICE_COMMON_CANVAS_UTILS
#include <spice/types.h>
#include <spice/macros.h>

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_MARSHALLERS
#define _H_MARSHALLERS
#ifndef H_SPICE_COMMON_CLIENT_MARSHALLERS
#define H_SPICE_COMMON_CLIENT_MARSHALLERS
#include <spice/protocol.h>

View File

@ -14,8 +14,8 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMMON_DEMARSHALLERS_H_
#define COMMON_DEMARSHALLERS_H_
#ifndef H_SPICE_COMMON_DEMARSHALLERS
#define H_SPICE_COMMON_DEMARSHALLERS
#include <stddef.h>
#include <spice/macros.h>

View File

@ -28,8 +28,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _H_SPICE_DRAW
#define _H_SPICE_DRAW
#ifndef H_SPICE_COMMON_DRAW
#define H_SPICE_COMMON_DRAW
#include <spice/macros.h>
#include <spice/types.h>
@ -302,4 +302,4 @@ static inline int spice_image_descriptor_is_lossy(const SpiceImageDescriptor *de
SPICE_END_DECLS
#endif /* _H_SPICE_DRAW */
#endif // H_SPICE_COMMON_DRAW

View File

@ -46,8 +46,8 @@ SOFTWARE.
******************************************************************/
#ifndef LINES_H
#define LINES_H
#ifndef H_SPICE_COMMON_LINES
#define H_SPICE_COMMON_LINES
#include <stdlib.h>
#include <string.h>
@ -133,4 +133,4 @@ extern int spice_canvas_clip_spans(pixman_region32_t *clip_region,
SPICE_END_DECLS
#endif /* LINES_H */
#endif // H_SPICE_COMMON_LINES

View File

@ -15,8 +15,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef H_SPICE_LOG
#define H_SPICE_LOG
#ifndef H_SPICE_COMMON_LOG
#define H_SPICE_COMMON_LOG
#include <stdarg.h>
#include <stdio.h>
@ -97,4 +97,4 @@ enum { spice_extra_checks = 0 };
SPICE_END_DECLS
#endif /* H_SPICE_LOG */
#endif // H_SPICE_COMMON_LOG

View File

@ -3,8 +3,8 @@
dictionary compression for images based on fastlz (http://www.fastlz.org/)
(Distributed under MIT license).
*/
#ifndef __LZ_H
#define __LZ_H
#ifndef H_SPICE_COMMON_LZ
#define H_SPICE_COMMON_LZ
#include <spice/macros.h>
@ -79,4 +79,4 @@ void lz_destroy(LzContext *lz);
SPICE_END_DECLS
#endif // __LZ_H
#endif // H_SPICE_COMMON_LZ

View File

@ -20,8 +20,8 @@
/*common header for encoder and decoder*/
#ifndef _LZ_COMMON_H
#define _LZ_COMMON_H
#ifndef H_SPICE_COMMON_LZ_COMMON
#define H_SPICE_COMMON_LZ_COMMON
#include <spice/macros.h>
#include "verify.h"
@ -71,4 +71,4 @@ verify(SPICE_N_ELEMENTS(RGB_BYTES_PER_PIXEL) == (LZ_IMAGE_TYPE_A8 + 1));
SPICE_END_DECLS
#endif // _LZ_COMMON_H
#endif // H_SPICE_COMMON_LZ_COMMON

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LZ_CONFIG_H
#define __LZ_CONFIG_H
#ifndef H_SPICE_COMMON_LZ_CONFIG
#define H_SPICE_COMMON_LZ_CONFIG
#include <spice/types.h>
#include <spice/macros.h>
@ -36,4 +36,4 @@
#endif // QXLDD
#endif //__GNUC__
#endif //__LZ_CONFIG_H
#endif // H_SPICE_COMMON_LZ_CONFIG

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MACROS_H
#define __MACROS_H
#ifndef H_SPICE_COMMON_MACROS
#define H_SPICE_COMMON_MACROS
#include "verify.h"
@ -55,4 +55,4 @@
#define SPICE_VERIFY(cond) verify_expr(cond, (void)1)
#endif /* __MACROS_H */
#endif // H_SPICE_COMMON_MACROS

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_MARSHALLER
#define _H_MARSHALLER
#ifndef H_SPICE_COMMON_MARSHALLER
#define H_SPICE_COMMON_MARSHALLER
#include <stdbool.h>
#include <spice/macros.h>

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_MEM
#define _H_MEM
#ifndef H_SPICE_COMMON_MEM
#define H_SPICE_COMMON_MEM
#include "log.h"
#include <stdlib.h>

View File

@ -28,8 +28,8 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _H_MESSAGES
#define _H_MESSAGES
#ifndef H_SPICE_COMMON_MESSAGES
#define H_SPICE_COMMON_MESSAGES
#include <spice/protocol.h>
#include <spice/macros.h>
@ -667,4 +667,4 @@ typedef struct SpiceMsgDisplayGlDraw {
SPICE_END_DECLS
#endif /* _H_SPICE_PROTOCOL */
#endif // H_SPICE_COMMON_MESSAGES

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H__PIXMAN_UTILS
#define _H__PIXMAN_UTILS
#ifndef H_SPICE_COMMON_PIXMAN_UTILS
#define H_SPICE_COMMON_PIXMAN_UTILS
#include <spice/types.h>
#include <spice/macros.h>
@ -140,4 +140,4 @@ void spice_pixman_copy_rect(pixman_image_t *image,
SPICE_END_DECLS
#endif /* _H__PIXMAN_UTILS */
#endif // H_SPICE_COMMON_PIXMAN_UTILS

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __QUIC_H
#define __QUIC_H
#ifndef H_SPICE_COMMON_QUIC
#define H_SPICE_COMMON_QUIC
#include <spice/macros.h>
#include "quic_config.h"

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __QUIC_CONFIG_H
#define __QUIC_CONFIG_H
#ifndef H_SPICE_COMMON_QUIC_CONFIG
#define H_SPICE_COMMON_QUIC_CONFIG
#include <spice/types.h>
#include <spice/macros.h>

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_RECT
#define _H_RECT
#ifndef H_SPICE_COMMON_RECT
#define H_SPICE_COMMON_RECT
#include <spice/macros.h>
#include "draw.h"

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_REGION
#define _H_REGION
#ifndef H_SPICE_COMMON_REGION
#define H_SPICE_COMMON_REGION
#include <stdint.h>
#include <spice/macros.h>

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_RING2
#define _H_RING2
#ifndef H_SPICE_COMMON_RING
#define H_SPICE_COMMON_RING
#include "log.h"

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_ROP3
#define _H_ROP3
#ifndef H_SPICE_COMMON_ROP3
#define H_SPICE_COMMON_ROP3
#include <stdint.h>
#include <spice/macros.h>

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H_SND_CODEC
#define _H_SND_CODEC
#ifndef H_SPICE_COMMON_SND_CODEC
#define H_SPICE_COMMON_SND_CODEC
#if HAVE_CELT051

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SSL_VERIFY_H
#define SSL_VERIFY_H
#ifndef H_SPICE_COMMON_SSL_VERIFY
#define H_SPICE_COMMON_SSL_VERIFY
#if defined(WIN32)
#include <windows.h>
@ -64,4 +64,4 @@ void spice_openssl_verify_free(SpiceOpenSSLVerify* verify);
SPICE_END_DECLS
#endif // SSL_VERIFY_H
#endif // H_SPICE_COMMON_SSL_VERIFY

View File

@ -16,8 +16,8 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _H__CANVAS
#define _H__CANVAS
#ifndef H_SPICE_COMMON_SW_CANVAS
#define H_SPICE_COMMON_SW_CANVAS
#include <stdint.h>
#include <spice/macros.h>