cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

qstring.h (674B)


      1/*
      2 * QString Module
      3 *
      4 * Copyright (C) 2009 Red Hat Inc.
      5 *
      6 * Authors:
      7 *  Luiz Capitulino <lcapitulino@redhat.com>
      8 *
      9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
     10 * See the COPYING.LIB file in the top-level directory.
     11 */
     12
     13#ifndef QSTRING_H
     14#define QSTRING_H
     15
     16#include "qapi/qmp/qobject.h"
     17
     18struct QString {
     19    struct QObjectBase_ base;
     20    const char *string;
     21};
     22
     23QString *qstring_new(void);
     24QString *qstring_from_str(const char *str);
     25QString *qstring_from_substr(const char *str, size_t start, size_t end);
     26QString *qstring_from_gstring(GString *gstr);
     27const char *qstring_get_str(const QString *qstring);
     28
     29#endif /* QSTRING_H */