Permalink
Commits on Jan 6, 2019
  1. Recommend Vala 0.44.x in README

    fenryxo committed Jan 6, 2019
  2. Keep vapi subdirectory

    fenryxo committed Jan 6, 2019
Commits on Jan 4, 2019
  1. CircleCI: Use Vala master

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  2. Refactor & rename System.overwrite_file_async

    fenryxo committed Jan 4, 2019
    * New name: System.write_to_file_async
    * Takes owned string and uses GLib.Bytes to manage its lifetime over the async operations.
    * Test case included.
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  3. Add String.as_bytes()

    fenryxo committed Jan 4, 2019
    Create a new GLib.Bytes instance from owned string without copying.
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  4. Refactor and rename System.make_directory_with_parents_sync

    fenryxo committed Jan 4, 2019
    * New name is System.make_dirs_async.
    * A test case included.
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  5. Transfer string ownership in error_to_string()

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  6. TestCase: Add unexpected_error()

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  7. TestCase: Add expect_error_match()

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  8. TestCase: Add get_tmp_dir()

    fenryxo committed Jan 4, 2019
    Creates and returns temporary directory for the test.
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  9. testgen: Actually use main loop for async tests

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  10. testgen: Fix whitespace

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  11. Add String.as_array_of_bytes()

    fenryxo committed Jan 4, 2019
    Cast owned string as an array of bytes without copying.
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  12. Drop Drt.System.overwrite_file

    fenryxo committed Jan 4, 2019
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
Commits on Jan 3, 2019
  1. Use int.from_pointer() to get int from pointer

    fenryxo committed Jan 3, 2019
    Otherwise, it emits [-Wpointer-to-int-cast]:
    
    TestCase.c: In function ‘drt_test_case_expect_enum’:
    TestCase.c:2107:47: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
       expected_member = g_enum_get_value (_tmp6_, (gint) expected);
                                                   ^
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  2. Use int masked as void* for HashTable values

    fenryxo committed Jan 3, 2019
    Otherwise, it emits [-Wint-conversion]:
    
    Result.c: In function ‘drtdb_result_get_column_index’:
    Result.c:367:8: error: assignment to ‘gint’ {aka ‘int’} from ‘gconstpointer’ {aka ‘const void *’} makes integer from pointer without a cast [-Werror=int-conversion]
      index = _tmp1_;
            ^
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  3. Remove DBus attribute from BluetoothProfile1

    fenryxo committed Jan 3, 2019
    It implements BluezProfile1 with the same DBus attribute, which
    emits [-Wimplicit-function-declaration]:
    
    BluetoothService.c: In function ‘_dbus_drt_bluetooth_profile1_release’:
    BluetoothService.c:1443:2: error: implicit declaration of function ‘drt_bluez_profile1_release’; did you mean ‘drt_bluez_profile1_get_type’? [-Werror=implicit-function-declaration]
      drt_bluez_profile1_release (self, &error);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      drt_bluez_profile1_get_type
    BluetoothService.c: In function ‘_dbus_drt_bluetooth_profile1_new_connection’:
    BluetoothService.c:1507:2: error: implicit declaration of function ‘drt_bluez_profile1_new_connection’; did you mean ‘drt_bluez_profile1_request_disconnection’? [-Werror=implicit-function-declaration]
      drt_bluez_profile1_new_connection (self, device, fd, fd_properties, &error);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drt_bluez_profile1_request_disconnection
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  4. Add --fatal-warnings to VALADOCFLAGS

    fenryxo committed Jan 3, 2019
    Can be disabled with ./waf configure --no-strict
    
    Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>