浏览代码

linux-capture: Refactor source data

Remove comments from and align members in the source data struct for the
xshm capture plugin.
fryshorts 10 年之前
父节点
当前提交
db9b71b80b
共有 1 个文件被更改,包括 15 次插入22 次删除
  1. 15 22
      plugins/linux-capture/xshm-input.c

+ 15 - 22
plugins/linux-capture/xshm-input.c

@@ -32,32 +32,25 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define blog(level, msg, ...) blog(level, "xshm-input: " msg, ##__VA_ARGS__)
 
 struct xshm_data {
-	/** The source object */
-	obs_source_t *source;
+	obs_source_t     *source;
 
 	xcb_connection_t *xcb;
 	xcb_screen_t     *xcb_screen;
+	xcb_shm_t        *xshm;
+	xcb_xcursor_t    *cursor;
 
-	/** user setting - the server name to capture from */
-	char *server;
-	/** user setting - the id of the screen that should be captured */
-	uint_fast32_t screen_id;
-	/** root coordinates for the capture */
-	int_fast32_t x_org, y_org;
-	/** size for the capture */
-	int_fast32_t width, height;
-	/** shared memory management object */
-	xcb_shm_t *xshm;
-	/** the texture used to display the capture */
-	gs_texture_t *texture;
-	/** cursor object for displaying the server */
-	xcb_xcursor_t *cursor;
-	/** user setting - if cursor should be displayed  */
-	bool show_cursor;
-	/** set if xinerama is available and active on the screen */
-	bool use_xinerama;
-	/** user setting - if advanced settings should be displayed */
-	bool advanced;
+	char             *server;
+	uint_fast32_t    screen_id;
+	int_fast32_t     x_org;
+	int_fast32_t     y_org;
+	int_fast32_t     width;
+	int_fast32_t     height;
+
+	gs_texture_t     *texture;
+
+	bool             show_cursor;
+	bool             use_xinerama;
+	bool             advanced;
 };
 
 /**