1. 14 8月, 2018 1 次提交
    • A
      conf: rename structs used by Export function · 5efc8d0c
      Anya Harter 提交于
      name structs to be the name of the Export function followed by Data
      also tweak definitions to follow standard struct definition pattern
      
          ex. for virInterfaceObjListExport, the struct is defined as follows:
      
              typedef struct _virInterfaceObjListExportData virInterfaceObjListExportData;
              typedef virInterfaceObjListExportData *virInterfaceObjListExportDataPtr;
              struct _virInterfaceObjListExportData {...};
      Signed-off-by: NAnya Harter <aharter@redhat.com>
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      5efc8d0c
  2. 25 7月, 2018 1 次提交
  3. 18 4月, 2018 1 次提交
    • M
      virobject: Introduce VIR_CLASS_NEW() macro · 10f94828
      Michal Privoznik 提交于
      So far we are repeating the following lines over and over:
      
        if (!(virSomeObjectClass = virClassNew(virClassForObject(),
                                   "virSomeObject",
                                   sizeof(virSomeObject),
                                   virSomeObjectDispose)))
            return -1;
      
      While this works, it is impossible to do some checking. Firstly,
      the class name (the 2nd argument) doesn't match the name in the
      code in all cases (the 3rd argument). Secondly, the current style
      is needlessly verbose. This commit turns example into following:
      
        if (!(VIR_CLASS_NEW(virSomeObject,
                            virClassForObject)))
            return -1;
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      10f94828
  4. 13 10月, 2017 1 次提交
  5. 29 8月, 2017 1 次提交
  6. 17 8月, 2017 18 次提交
  7. 14 8月, 2017 1 次提交
  8. 02 8月, 2017 1 次提交
  9. 20 7月, 2017 1 次提交
  10. 19 4月, 2017 4 次提交