此内容没有您所选择的语言版本。

2.2.5.2. API Changes for glib


There are a number of API changes for glib between versions.
Version 2.4 to Version 2.12

Some of the differences in glib between version 2.4 and 2.12 (or between Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5) are:

  • GOption (a command line option parser)
  • GKeyFile (a key/ini file parser)
  • GObject toggle references
  • GMappedFile (a map wrapper)
  • GSlice (a fast memory allocator)
  • GBookmarkFile (a bookmark file parser)
  • Base64 encoding support
  • Native atomic ops on s390
  • Updated Unicode support to 5
  • Atomic reference counting for GObject
Version 2.12 to Version 2.22

Some of the differences in glib between version 2.12 and 2.22 (or between Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6) are:

  • GSequence (a list data structure that is implemented as a balanced tree)
  • GRegex (a PCRE regex wrapper)
  • Support for monotonic clocks
  • XDG user dirs support
  • GIO (a VFS library to replace gnome-vfs)
  • GChecksum (support for hash algorithms such as MD5 and SHA-256)
  • GTest (a test framework)
  • Support for sockets and network IO in GIO
  • GHashTable performance improvements
  • GMarkup performance improvements
Documentation for glib, including indexes of new and deprecated APIs, is shipped in the glib2-devel package.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.