1. 03 Mar, 2019 1 commit
  2. 28 Jan, 2019 2 commits
    • Philip Chimento's avatar
      overrides: Allow DBus methods with file descriptor lists · a13bb7a0
      Philip Chimento authored
      For DBus proxies, we now allow calling methods with an extra
      Gio.UnixFDList argument. This does not break existing code because we
      already allowed a bunch of arguments in any order. Gio.DBusProxy.call()
      is the same under the hood as Gio.DBusProxy.call_with_unix_fd_list(),
      only with a null FD list parameter, so we can replace the former with
      the latter.
      Previously, synchronously called DBus proxy methods would return an
      unpacked GVariant. Now, if called with a Gio.UnixFDList they will return
      [unpacked GVariant, FDList]. This also does not break existing code
      because it was not possible to call a method with an FDList before, and
      the return value is unchanged if not calling with an FDList. This does
      mean, unfortunately, that if you have a method with an 'h' in its return
      signature but not in its argument signatures, you will have to call it
      with an empty FDList in order to receive an FDList with the return
      value, if calling synchronously.
      On the DBus service side, when receiving a method call, we now pass the
      FDList received from DBus to the called method. Previously, sync methods
      were passed the parameters, and async methods were passed the parameters
      plus the Gio.DBusInvocation object. Appending the Gio.UnixFDList to
      those parameters also should not break existing code, although it could
      if the method examines the number of arguments. (That is unlikely, since
      DBus doesn't have methods with variable arguments.)
      TODO: Check whether this works on non-Unix platforms.
      Closes #204.
    • Philip Chimento's avatar
      GjsPrivate: Sources should be C files · e1c96788
      Philip Chimento authored
      The GjsPrivate library doesn't use any SpiderMonkey code, only C APIs.
      So the files should be compiled with a C compiler, otherwise we get
      C++'s stricter typechecks, making it hard to use void* APIs such as
      [skip cpplint] - This shows a diff in the linter output because the
      files were renamed.
  3. 22 Oct, 2016 1 commit
    • Philip Chimento's avatar
      build: Test for %Id as alternate integer output · be2cf989
      Philip Chimento authored
      %Id is a glibc extension. The "I" character is used elsewhere in other
      extensions too. For example, %I is a Microsoft extension for printing
      size_t. Although undocumented on Darwin, that platform's libc emulates
      the Microsoft extension.
      If %I is interpreted as size_t, then the code is likely to crash on
      platforms where int and size_t are different widths, such as 64-bit OSX.
      This adds a configure-time check for %Id. When it's not supported, then
      the provided sample program will error out when compiled with -Werror. If
      not supported then we simply print %d since I don't believe the
      alternative representation flag has any other equivalent on other
  4. 22 Sep, 2015 1 commit
  5. 31 Jul, 2015 1 commit
  6. 10 Apr, 2014 1 commit
  7. 29 Oct, 2013 1 commit
  8. 18 Jan, 2013 1 commit
  9. 13 Nov, 2012 1 commit
  10. 17 Feb, 2011 1 commit
  11. 11 Aug, 2009 1 commit
    • Colin Walters's avatar
      Add a gettext module · 7159637b
      Colin Walters authored
      Bindings for gettext, dgettext, ngettext, dngettext, and pgettext.
      We also expose a function "domain" which returns an "instance" of
      the gettext module specialized for a particular domain, to avoid
      having to pass the domain to every call to gettext; useful
      for code which is not in the default domain.
  12. 16 Dec, 2008 1 commit
  13. 13 Oct, 2008 1 commit
  14. 12 Oct, 2008 1 commit
  15. 10 Oct, 2008 1 commit