Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 11, 2010
  1. qjson: Handle "\f"

    Luiz Capitulino authored
    It's valid JSON and should be handled.
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Commits on Feb 10, 2010
  1. qjson: Improve debugging

    Luiz Capitulino authored Anthony Liguori committed
    Add an assert() to qobject_from_jsonf() to assure that the returned
    QObject is not NULL. Currently this is duplicated in the callers.
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Commits on Jan 26, 2010
  1. json: escape u0000 .. u001F when outputting json

    Anthony Liguori authored
    Markus Armbruster pointed out:
    
    JSON requires control characters in strings to be escaped.  RFC 4627
    section 2.5:
    
       A string begins and ends with quotation marks.  All Unicode
       characters may be placed within the quotation marks except for the
       characters that must be escaped: quotation mark, reverse solidus, and
       the control characters (U+0000 through U+001F).
    
    We've been quoting the special escape sequences that JSON defines but we
    haven't been encoding the full control character range.  This patch fixes that.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Commits on Dec 3, 2009
  1. Introduce QError

    Luiz Capitulino authored Anthony Liguori committed
    QError is a high-level data type which represents an exception
    in QEMU, it stores the following error information:
    
    - class          Error class name (eg. "ServiceUnavailable")
    - description    A detailed error description, which can contain
                     references to run-time error data
    - filename       The file name of where the error occurred
    - line number    The exact line number of the error
    - function       The function name of where the error occurred
    - run-time data  Any run-time error data
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  2. QJSON: Introduce qobject_from_jsonv()

    Luiz Capitulino authored Anthony Liguori committed
    It accepts a va_list and will be used by QError. Also simplifies
    the code a little, as the other qobject_from_() functions can
    use it.
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Commits on Nov 17, 2009
  1. Provide marshalling mechanism for json

    Anthony Liguori authored
    This introduces qobject_to_json which will convert a QObject to a JSON string
    representation.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  2. Add a QObject JSON wrapper

    Anthony Liguori authored
    This provides a QObject interface for creating QObjects from a JSON expression.
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Something went wrong with that request. Please try again.